From 6eb7aa04bd75ba13d2d46ba96267270b3e45b2dc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 4 Jan 2024 17:12:26 +0900 Subject: [PATCH] cmake: use -fvisibility=default for sim_head So that macos build can find _main and _sim_doirq. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b1fd3a1da..4e2be1a85c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -436,6 +436,7 @@ if(CONFIG_ARCH_SIM) TARGET nuttx PROPERTY NUTTX_KERNEL_COMPILE_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 # linked against final nuttx binary