Skip to content

Commit

Permalink
Disable Trezor compilation on protobuf discovery as per #83
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumLeaper committed May 4, 2021
1 parent a9fd253 commit fb35763
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/device_trezor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ set(trezor_private_headers)
include(FindProtobuf)
find_package(Protobuf) # REQUIRED

# Test for HAVE_PROTOBUF from the parent
if(Protobuf_FOUND AND HAVE_PROTOBUF)
if(Protobuf_FOUND AND HAVE_PROTOBUF AND WITH_TREZOR)
if ("$ENV{PYTHON3}" STREQUAL "")
set(PYTHON3 "python3")
else()
Expand Down
2 changes: 1 addition & 1 deletion src/device_trezor/trezor/trezor_defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//

#if defined(HAVE_PROTOBUF) && !defined(WITHOUT_TREZOR)
#if defined(HAVE_PROTOBUF) && defined(WITH_TREZOR)
#define WITH_DEVICE_TREZOR 1
#else
#define WITH_DEVICE_TREZOR 0
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ using namespace epee;
#include "ringct/rctSigs.h"
#include "ringdb.h"
#include "device/device_cold.hpp"
#include "device_trezor/device_trezor.hpp"
//#include "device_trezor/device_trezor.hpp"

#include "cryptonote_core/utility_node_rules.h"

Expand Down

0 comments on commit fb35763

Please sign in to comment.