File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
include (CMakeParseArguments )
2
2
include (SwiftXcodeSupport )
3
3
4
+ include (CheckCXXCompilerFlag )
5
+
4
6
macro (swift_common_standalone_build_config_llvm product is_cross_compiling )
5
7
option (LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON )
6
8
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ set(HOST_CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER})
13
13
set (HOST_CMAKE_C_COMPILER_INITIAL ${CMAKE_C_COMPILER} )
14
14
15
15
if (SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
16
- if ((NOT "${CMAKE_C_COMPILER_ID} " STREQUAL "Clang" ) AND
17
- (NOT "${CMAKE_C_COMPILER_ID} " STREQUAL "AppleClang" ))
16
+ if (NOT "${CMAKE_C_COMPILER_ID} " MATCHES "Clang" )
18
17
message (FATAL_ERROR "Building the swift runtime is not supported with ${CMAKE_C_COMPILER_ID} . Use the just-built clang instead." )
19
18
else ()
20
19
message (WARNING "Building the swift runtime using the host compiler, and not the just-built clang." )
32
31
33
32
set (CMAKE_C_COMPILER_LAUNCHER "" )
34
33
set (CMAKE_CXX_COMPILER_LAUNCHER "" )
34
+
35
35
# The sanitizers require using the same version of the compiler for
36
36
# everything and there are various places where we link runtime code with
37
37
# code built by the host compiler. Disable sanitizers for the runtime for
Original file line number Diff line number Diff line change
1
+
1
2
set (SWIFT_RUNTIME_CXX_FLAGS )
2
3
set (SWIFT_RUNTIME_LINK_FLAGS )
3
4
set (SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS )
You can’t perform that action at this time.
0 commit comments