Skip to content

Commit f1043e4

Browse files
committed
build: correct case for STREQUAL (NFC)
The swift variables use the upper case spelling while CMake uses mixed case. Use the correct case to fix the build. This is preferable to using MATCH to avoid the unnecessary configure time penalties.
1 parent 8e38b67 commit f1043e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${SWIFT_HOST_VARIANT_SDK}" STREQUAL "LINUX")
284284
list(APPEND swift_core_private_link_libraries swiftImageInspectionShared)
285285
endif()
286286

287-
if(SWIFT_PRIMARY_VARIANT_SDK STREQUAL Windows)
287+
if(SWIFT_PRIMARY_VARIANT_SDK STREQUAL WINDOWS)
288288
list(APPEND swift_core_private_link_libraries shell32)
289289
endif()
290290

0 commit comments

Comments
 (0)