Statically linking Swift Stdlib in SwiftBuild if set#9417
Merged
bkhouri merged 1 commit intoDec 16, 2025
Merged
Conversation
bkhouri
commented
Nov 26, 2025
bkhouri
force-pushed
the
t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
branch
2 times, most recently
from
December 5, 2025 19:23
5ccf356 to
231177e
Compare
bkhouri
marked this pull request as ready for review
December 8, 2025 21:17
bkhouri
requested review from
bripeticca,
cmcgee1024,
daveyc123,
dschaefer2,
jakepetroules,
owenv,
plemarquand and
rconnell9
as code owners
December 8, 2025 21:17
bkhouri
force-pushed
the
t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
branch
from
December 8, 2025 21:20
231177e to
a6e5bc0
Compare
Contributor
Author
|
@swift-ci test |
1 similar comment
Contributor
Author
|
@swift-ci test |
bkhouri
force-pushed
the
t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
branch
from
December 11, 2025 19:53
a6e5bc0 to
2027e15
Compare
Contributor
Author
|
@swift-ci test |
bkhouri
force-pushed
the
t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
branch
from
December 15, 2025 14:32
2027e15 to
95b50b8
Compare
Contributor
Author
|
@swift-ci test |
Contributor
Author
|
@swift-ci test macos self hosted swiftbuild |
Contributor
Author
|
@swift-ci test windows |
Set the `SWIFT_FORCE_STATIC_LINK_STDLIB` build setting in SwiftBuild accordingly to the command line argument and if it's not on Darwin. In addition, set the SWIFT_RESOURCE_DIR setting as that is what the Native build system does. Fixes: swiftlang#9320 Issue: rdar://163948614
bkhouri
force-pushed
the
t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
branch
from
December 16, 2025 04:37
95b50b8 to
5ceb6ab
Compare
Contributor
Author
|
@swift-ci test |
Contributor
Author
|
@swift-ci test macOS self hosted swiftbuild |
Contributor
Author
|
@swift-ci test windows |
Contributor
Author
|
@swift-ci test macOS |
1 similar comment
Contributor
Author
|
@swift-ci test macOS |
rconnell9
approved these changes
Dec 16, 2025
bkhouri
deleted the
t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
branch
December 16, 2025 20:03
bkhouri
added a commit
that referenced
this pull request
Dec 18, 2025
Adopt the new API on SWBBuildRequest Depends on #9417 Fixes: #9321 --------- Co-authored-by: Bassam Khouri <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set the
SWIFT_FORCE_STATIC_LINK_STDLIBbuild setting in SwiftBuildaccordingly to the command line argument and if it's not on Darwin.
In addition, set the SWIFT_RESOURCE_DIR setting as that is what the
Native build system does.
Fixes: #9320
Issue: rdar://163948614
Depends on: #9389
Needs: swiftlang/swift-build#942