This commit is contained in:
Hans Wennborg 2023-05-02 10:31:37 +02:00
parent 95d4506dda
commit 55224bc55c

View File

@ -359,7 +359,7 @@ macro(construct_compiler_rt_default_triple)
message(FATAL_ERROR "COMPILER_RT_DEFAULT_TARGET_TRIPLE isn't supported when building for default target only")
endif()
if ("${CMAKE_C_COMPILER_TARGET}" STREQUAL "")
message(FATAL_ERROR "CMAKE_C_COMPILER_TARGET must also be set when COMPILER_RT_DEFAUT_TARGET_ONLY is ON")
message(FATAL_ERROR "CMAKE_C_COMPILER_TARGET must also be set when COMPILER_RT_DEFAULT_TARGET_ONLY is ON")
endif()
message(STATUS "cmake c compiler target: ${CMAKE_C_COMPILER_TARGET}")
set(COMPILER_RT_DEFAULT_TARGET_TRIPLE ${CMAKE_C_COMPILER_TARGET})