cmake: fix whitespace
No functional change expected. Signed-off-by: Mark Ruvald Pedersen <mped@oticon.com>
This commit is contained in:
parent
fbfe75c55e
commit
3481dc876e
2 changed files with 3 additions and 6 deletions
|
@ -110,7 +110,6 @@ if(SYSROOT_DIR)
|
||||||
set(LIBC_INCLUDE_DIR ${SYSROOT_DIR}/include)
|
set(LIBC_INCLUDE_DIR ${SYSROOT_DIR}/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# For CMake to be able to test if a compiler flag is supported by the
|
# For CMake to be able to test if a compiler flag is supported by the
|
||||||
# toolchain we need to give CMake the necessary flags to compile and
|
# toolchain we need to give CMake the necessary flags to compile and
|
||||||
# link a dummy C file.
|
# link a dummy C file.
|
||||||
|
@ -120,6 +119,7 @@ endif()
|
||||||
foreach(isystem_include_dir ${NOSTDINC})
|
foreach(isystem_include_dir ${NOSTDINC})
|
||||||
list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
|
list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# The CMAKE_REQUIRED_FLAGS variable is used by check_c_compiler_flag()
|
# The CMAKE_REQUIRED_FLAGS variable is used by check_c_compiler_flag()
|
||||||
# (and other commands which end up calling check_c_source_compiles())
|
# (and other commands which end up calling check_c_source_compiles())
|
||||||
# to add additional compiler flags used during checking. These flags
|
# to add additional compiler flags used during checking. These flags
|
||||||
|
|
|
@ -50,12 +50,9 @@ include(${ZEPHYR_BASE}/cmake/compiler/${COMPILER}/target.cmake OPTIONAL)
|
||||||
#
|
#
|
||||||
# What we are looking for, is a signature definition that is defined
|
# What we are looking for, is a signature definition that is defined
|
||||||
# like this:
|
# like this:
|
||||||
|
# * Toolchains with the same signature will always support the same set
|
||||||
# Toolchains with the same signature will always support the same set
|
# of flags.
|
||||||
# of flags.
|
|
||||||
|
|
||||||
# It is not clear how this signature should be constructed. The
|
# It is not clear how this signature should be constructed. The
|
||||||
# strategy chosen is to md5sum the CC binary.
|
# strategy chosen is to md5sum the CC binary.
|
||||||
|
|
||||||
file(MD5 ${CMAKE_C_COMPILER} CMAKE_C_COMPILER_MD5_SUM)
|
file(MD5 ${CMAKE_C_COMPILER} CMAKE_C_COMPILER_MD5_SUM)
|
||||||
set(TOOLCHAIN_SIGNATURE ${CMAKE_C_COMPILER_MD5_SUM})
|
set(TOOLCHAIN_SIGNATURE ${CMAKE_C_COMPILER_MD5_SUM})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue