Skip to content

Commit 1835aaf

Browse files
authored
Merge pull request #67286 from RemiBardon/fix-2023-07-13-a
Remove useless `if` statement
2 parents b962cab + 9156503 commit 1835aaf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unittests/runtime/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
1212
set(CMAKE_C_COMPILER "${SWIFT_NATIVE_CLANG_TOOLS_PATH}/clang")
1313
endif()
1414
elseif(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
15-
if(NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
16-
message(FATAL_ERROR "Building the swift runtime is not supported with ${CMAKE_C_COMPILER_ID}. Use the just-built clang instead.")
17-
endif()
15+
message(FATAL_ERROR "Building the swift runtime is not supported with ${CMAKE_C_COMPILER_ID}. Use the just-built clang instead.")
1816
else()
1917
message(WARNING "Building the swift runtime using the host compiler, and not the just-built clang.")
2018

0 commit comments

Comments
 (0)