File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
1457
1457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
1458
1458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
1459
1459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460
- refs/heads/master-rebranch: 15035bfa9cbabee863437e3a96b6a9ad99217028
1460
+ refs/heads/master-rebranch: 49a1e7c668a22b8aac46c4e93f8a08747db4c8af
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