From f2b4ab283f8f9d2bbd434b2fc66cb7bfcded5fa5 Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Thu, 5 Dec 2024 22:09:51 +0800 Subject: [PATCH] cmake(bugfix):fix CMake build break on MacOS report by https://github.com/apache/nuttx/issues/14936 Signed-off-by: xuxin19 --- arch/sim/src/cmake/Toolchain.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/cmake/Toolchain.cmake b/arch/sim/src/cmake/Toolchain.cmake index 7c5291f2a3..bad48c36fe 100644 --- a/arch/sim/src/cmake/Toolchain.cmake +++ b/arch/sim/src/cmake/Toolchain.cmake @@ -181,7 +181,7 @@ endif() if(CONFIG_SIM_M32) add_compile_options(-m32) add_link_options(-m32) -elseif(NOT CONFIG_HOST_MACOS) +elseif(NOT APPLE) add_compile_options(-no-pie) add_link_options(-Wl,-no-pie) endif()