clang: target: Include gcc-m-fpu.cmake file
File gcc-m-fpu.cmake is responsible for determining what should be passed to -mfpu option. Fortunately GCC and Clang options are compatible so we can use the file for clang. The list of supported -mfpu options can be found at https://github.com/llvm/llvm-project in llvm/include/llvm/TargetParser/ARMTargetParser.def file. Signed-off-by: Patryk Duda <pdk@semihalf.com>
This commit is contained in:
parent
9ddca0bfc6
commit
ad1b1cf978
@ -20,6 +20,7 @@ find_program(CMAKE_CXX_COMPILER clang++ ${find_program_clang_args})
|
||||
|
||||
if(NOT "${ARCH}" STREQUAL "posix")
|
||||
include(${ZEPHYR_BASE}/cmake/gcc-m-cpu.cmake)
|
||||
include(${ZEPHYR_BASE}/cmake/gcc-m-fpu.cmake)
|
||||
|
||||
if("${ARCH}" STREQUAL "arm")
|
||||
list(APPEND TOOLCHAIN_C_FLAGS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user