Added support for build emulation in Apple and Linux.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-01-30 01:24:35 +01:00
parent 6f8769ee8d
commit 8f593f6357

View File

@@ -89,10 +89,16 @@ target_compile_options(pico_hsm PUBLIC
-fdata-sections
-ffunction-sections
)
target_link_options(pico_hsm PUBLIC
if(APPLE)
target_link_options(pico_hsm PUBLIC
-Wl,-dead_strip
)
else()
target_link_options(pico_hsm PUBLIC
-Wl,--gc-sections
)
endif (APPLE)
else()
pico_add_extra_outputs(pico_hsm)
target_link_libraries(pico_hsm PRIVATE pico_hsm_sdk pico_stdlib pico_multicore hardware_flash hardware_sync hardware_adc pico_unique_id hardware_rtc tinyusb_device tinyusb_board)