cmake: use -fvisibility=default for sim_head

So that macos build can find _main and _sim_doirq.
This commit is contained in:
YAMAMOTO Takashi 2024-01-04 17:12:26 +09:00 committed by Xiang Xiao
parent 595a0aa5fb
commit 6eb7aa04bd
1 changed files with 1 additions and 0 deletions

View File

@ -436,6 +436,7 @@ if(CONFIG_ARCH_SIM)
TARGET nuttx TARGET nuttx
PROPERTY NUTTX_KERNEL_COMPILE_OPTIONS) PROPERTY NUTTX_KERNEL_COMPILE_OPTIONS)
target_compile_options(sim_head PRIVATE ${options}) target_compile_options(sim_head PRIVATE ${options})
target_compile_options(sim_head PRIVATE -fvisibility=default)
# We need the relocatable object to be first in the list of libraries to be # We need the relocatable object to be first in the list of libraries to be
# linked against final nuttx binary # linked against final nuttx binary