Skip to content

Commit b821662

Browse files
committed
[build] Do not pass -sdk when building stdlib on Linux
1 parent 64f2654 commit b821662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function(_add_target_variant_swift_compile_flags
223223
${ARGN})
224224

225225
# On Windows, we don't set SWIFT_SDK_WINDOWS_PATH_ARCH_{ARCH}_PATH, so don't include it.
226-
if (NOT "${sdk}" STREQUAL "WINDOWS")
226+
if (NOT "${sdk}" STREQUAL "WINDOWS" AND NOT "${sdk}" STREQUAL "LINUX")
227227
list(APPEND result "-sdk" "${SWIFT_SDK_${sdk}_ARCH_${arch}_PATH}")
228228
endif()
229229

0 commit comments

Comments
 (0)