From 4929ca1c660c802ee436151de847c14ec7bebbf8 Mon Sep 17 00:00:00 2001 From: cepetr Date: Thu, 31 Oct 2024 21:15:18 +0100 Subject: [PATCH] fix(core): fix bootloader_emu macOS build [no changelog] --- core/SConscript.bootloader_emu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/SConscript.bootloader_emu b/core/SConscript.bootloader_emu index f651eefdb..06822faa6 100644 --- a/core/SConscript.bootloader_emu +++ b/core/SConscript.bootloader_emu @@ -269,7 +269,7 @@ rust = env.Command( env.Append(LINKFLAGS=f'-L{RUST_LIBDIR}') env.Append(LINKFLAGS=f'-l{RUST_LIB}') env.Append(LINKFLAGS='-lm') -env.Append(LINKFLAGS='-Wl,--gc-sections') +env.Append(LINKFLAGS='-Wl,' + ('-dead_strip' if env['PLATFORM'] == 'darwin' else '--gc-sections')) # # Program objects