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 1
1
---
2
- refs/heads/master: 15035bfa9cbabee863437e3a96b6a9ad99217028
2
+ refs/heads/master: 49a1e7c668a22b8aac46c4e93f8a08747db4c8af
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
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