cmake(bugfix):fix CMake build break on MacOS
report by https://github.com/apache/nuttx/issues/14936 Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
60fb917eda
commit
f2b4ab283f
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ endif()
|
||||||
if(CONFIG_SIM_M32)
|
if(CONFIG_SIM_M32)
|
||||||
add_compile_options(-m32)
|
add_compile_options(-m32)
|
||||||
add_link_options(-m32)
|
add_link_options(-m32)
|
||||||
elseif(NOT CONFIG_HOST_MACOS)
|
elseif(NOT APPLE)
|
||||||
add_compile_options(-no-pie)
|
add_compile_options(-no-pie)
|
||||||
add_link_options(-Wl,-no-pie)
|
add_link_options(-Wl,-no-pie)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue