Skip to content

Commit 3ace09d

Browse files
authored
Merge pull request #22600 from compnerd/build-sweep
2 parents 18f4500 + adbb7d7 commit 3ace09d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include(CMakeParseArguments)
22
include(SwiftXcodeSupport)
33

4+
include(CheckCXXCompilerFlag)
5+
46
macro(swift_common_standalone_build_config_llvm product is_cross_compiling)
57
option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
68

stdlib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ set(HOST_CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER})
1313
set(HOST_CMAKE_C_COMPILER_INITIAL ${CMAKE_C_COMPILER})
1414

1515
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")
1817
message(FATAL_ERROR "Building the swift runtime is not supported with ${CMAKE_C_COMPILER_ID}. Use the just-built clang instead.")
1918
else()
2019
message(WARNING "Building the swift runtime using the host compiler, and not the just-built clang.")
@@ -32,6 +31,7 @@ else()
3231

3332
set(CMAKE_C_COMPILER_LAUNCHER "")
3433
set(CMAKE_CXX_COMPILER_LAUNCHER "")
34+
3535
# The sanitizers require using the same version of the compiler for
3636
# everything and there are various places where we link runtime code with
3737
# code built by the host compiler. Disable sanitizers for the runtime for

stdlib/public/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
set(SWIFT_RUNTIME_CXX_FLAGS)
23
set(SWIFT_RUNTIME_LINK_FLAGS)
34
set(SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS)

0 commit comments

Comments
 (0)