Skip to content

Commit ea950df

Browse files
authored
Merge pull request #28058 from compnerd/id-is-not-name
build: check the compiler against the correct variable
2 parents 93672e3 + b861bcc commit ea950df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ function(add_swift_target_library name)
19911991
DEPLOYMENT_VERSION_WATCHOS "${SWIFTLIB_DEPLOYMENT_VERSION_WATCHOS}"
19921992
GYB_SOURCES ${SWIFTLIB_GYB_SOURCES}
19931993
)
1994-
if(NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER MATCHES Clang)
1994+
if(NOT SWIFT_BUILT_STANDALONE AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
19951995
add_dependencies(${VARIANT_NAME} clang)
19961996
endif()
19971997

0 commit comments

Comments
 (0)