Skip to content

Commit 5036112

Browse files
authored
Merge pull request #67771 from compnerd/static
build: ensure that we push `-static` into the flags
2 parents 6261ee2 + 3f828e9 commit 5036112

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,10 @@ function(_compile_swift_files
455455
MACCATALYST_BUILD_FLAVOR "${maccatalyst_build_flavor}"
456456
)
457457

458+
if(SWIFTFILE_STATIC)
459+
list(APPEND swift_flags -static)
460+
endif()
461+
458462
# Determine the subdirectory where the binary should be placed.
459463
set(library_subdir_sdk "${SWIFTFILE_SDK}")
460464
if(maccatalyst_build_flavor STREQUAL "ios-like")

0 commit comments

Comments
 (0)