diff --git a/core/SConscript.bootloader_emu b/core/SConscript.bootloader_emu index fb254c8765..a9083f8c6a 100644 --- a/core/SConscript.bootloader_emu +++ b/core/SConscript.bootloader_emu @@ -256,7 +256,7 @@ cmake_gen = env.Command( # Rust library # -RUST_TARGET = 'x86_64-unknown-linux-gnu' +RUST_TARGET = os.popen("rustc -vV | sed -n 's/host: //p'").read().strip() RUST_LIB = 'trezor_lib' if ARGUMENTS.get('TREZOR_EMULATOR_DEBUGGABLE', '0') == '1':