cmake(bugfix):Fixed the issue that the host toolchain version cannot be specified

SIM arch does not need to execute find_program

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-10-21 16:25:31 +08:00 committed by Xiang Xiao
parent e00fbc5557
commit 82677145ed

View file

@ -27,11 +27,6 @@ if(WIN32)
return()
endif()
find_program(CMAKE_C_COMPILER gcc)
find_program(CMAKE_CXX_COMPILER g++)
set(CMAKE_PREPROCESSOR cc -E -P -x c)
# NuttX is sometimes built as a native target. In that case, the __NuttX__ macro
# is predefined by the compiler. https://github.com/NuttX/buildroot
#