From 4cf917c7cb162d3f1e7f30dec28f4da661fd143d Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Sat, 19 Feb 2022 13:26:46 +0100 Subject: [PATCH] build(core): fix TREZOR_EMULATOR_DEBUGGABLE [no changelog] --- core/SConscript.unix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/SConscript.unix b/core/SConscript.unix index f856418cf..899c2e70f 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -668,9 +668,13 @@ protobuf_blobs = env.Command( ) env.Depends(protobuf_blobs, qstr_generated) -RUST_PROFILE = 'dev' if ARGUMENTS.get('TREZOR_EMULATOR_DEBUGGABLE', 0) == '1' else 'release' +if ARGUMENTS.get('TREZOR_EMULATOR_DEBUGGABLE', '0') == '1': + RUST_PROFILE = 'dev' + RUST_LIBDIR = 'build/unix/rust/debug' +else: + RUST_PROFILE = 'release' + RUST_LIBDIR = 'build/unix/rust/release' RUST_LIB = 'trezor_lib' -RUST_LIBDIR = f'build/unix/rust/{RUST_PROFILE}' RUST_LIBPATH = f'{RUST_LIBDIR}/lib{RUST_LIB}.a' def cargo_build():