This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f2b4ab283f cmake(bugfix):fix CMake build break on MacOS
f2b4ab283f is described below

commit f2b4ab283f8f9d2bbd434b2fc66cb7bfcded5fa5
Author: xuxin19 <[email protected]>
AuthorDate: Thu Dec 5 22:09:51 2024 +0800

    cmake(bugfix):fix CMake build break on MacOS
    
    report by https://github.com/apache/nuttx/issues/14936
    
    Signed-off-by: xuxin19 <[email protected]>
---
 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()

Reply via email to