File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
if (("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK} " ) AND
2
2
("${SWIFT_HOST_VARIANT_ARCH} " STREQUAL "${SWIFT_PRIMARY_VARIANT_ARCH} " ))
3
3
4
- if (SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
4
+ if ("${CMAKE_C_COMPILER_ID} " MATCHES "Clang" )
5
+ # Do nothing
6
+ elseif (SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
5
7
if (NOT "${CMAKE_C_COMPILER_ID} " MATCHES "Clang" )
6
8
message (FATAL_ERROR "Building the swift runtime is not supported with ${CMAKE_C_COMPILER_ID} . Use the just-built clang instead." )
7
- else ()
8
- message (WARNING "Building the swift runtime using the host compiler, and not the just-built clang." )
9
9
endif ()
10
10
else ()
11
+ message (WARNING "Building the swift runtime using the host compiler, and not the just-built clang." )
12
+
11
13
# If we use Clang-cl or MSVC, CMake provides default compiler and linker flags that are incompatible
12
14
# with the frontend of Clang or Clang++.
13
15
if (SWIFT_COMPILER_IS_MSVC_LIKE )
You can’t perform that action at this time.
0 commit comments