mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
cmake: remove CMAKE_SYSTEM_* from the native toolchain
If these variables are set explictly then CMake assumes that it is cross-compiling[1]. We don't need to set them as the default values as detected by CMake are correct for native. [1] https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING.html (From OE-Core rev: 0ea50cba64b5004722051c0ece900443dc4ca929) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
736521296c
commit
208693b05c
@@ -180,8 +180,6 @@ list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${includedir})
|
||||
|
||||
EOF
|
||||
cat > ${WORKDIR}/toolchain-native.cmake <<EOF
|
||||
set( CMAKE_SYSTEM_NAME ${@map_host_os_to_system_name(d.getVar('BUILD_OS'))} )
|
||||
set( CMAKE_SYSTEM_PROCESSOR ${@map_host_arch_to_uname_arch(d.getVar('BUILD_ARCH'))} )
|
||||
set( CMAKE_C_COMPILER ${OECMAKE_NATIVE_C_COMPILER} )
|
||||
set( CMAKE_CXX_COMPILER ${OECMAKE_NATIVE_CXX_COMPILER} )
|
||||
set( CMAKE_ASM_COMPILER ${OECMAKE_NATIVE_C_COMPILER} )
|
||||
|
||||
Reference in New Issue
Block a user