Skip to content

Statically linking Swift Stdlib in SwiftBuild if set#9417

Merged
bkhouri merged 1 commit into
swiftlang:mainfrom
bkhouri:t/main/gh9320_rdar163948614_add_swift-static-stdlib_support
Dec 16, 2025
Merged

Statically linking Swift Stdlib in SwiftBuild if set#9417
bkhouri merged 1 commit into
swiftlang:mainfrom
bkhouri:t/main/gh9320_rdar163948614_add_swift-static-stdlib_support

Conversation

@bkhouri

@bkhouri bkhouri commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

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: #9320
Issue: rdar://163948614
Depends on: #9389
Needs: swiftlang/swift-build#942

Comment thread Sources/SwiftBuildSupport/Diagnostics+Extensions.swift Outdated
@bkhouri
bkhouri force-pushed the t/main/gh9320_rdar163948614_add_swift-static-stdlib_support branch 2 times, most recently from 5ccf356 to 231177e Compare December 5, 2025 19:23
@bkhouri
bkhouri marked this pull request as ready for review December 8, 2025 21:17
@bkhouri
bkhouri force-pushed the t/main/gh9320_rdar163948614_add_swift-static-stdlib_support branch from 231177e to a6e5bc0 Compare December 8, 2025 21:20
@bkhouri

bkhouri commented Dec 8, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

1 similar comment
@bkhouri

bkhouri commented Dec 9, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri
bkhouri force-pushed the t/main/gh9320_rdar163948614_add_swift-static-stdlib_support branch from a6e5bc0 to 2027e15 Compare December 11, 2025 19:53
@bkhouri

bkhouri commented Dec 11, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri
bkhouri force-pushed the t/main/gh9320_rdar163948614_add_swift-static-stdlib_support branch from 2027e15 to 95b50b8 Compare December 15, 2025 14:32
@bkhouri

bkhouri commented Dec 15, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri

bkhouri commented Dec 15, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test macos self hosted swiftbuild

@bkhouri

bkhouri commented Dec 15, 2025

Copy link
Copy Markdown
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
bkhouri force-pushed the t/main/gh9320_rdar163948614_add_swift-static-stdlib_support branch from 95b50b8 to 5ceb6ab Compare December 16, 2025 04:37
@bkhouri

bkhouri commented Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri

bkhouri commented Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test macOS self hosted swiftbuild

@bkhouri

bkhouri commented Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test windows

@bkhouri

bkhouri commented Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test macOS

1 similar comment
@bkhouri

bkhouri commented Dec 16, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test macOS

@bkhouri
bkhouri merged commit f7ff31e into swiftlang:main Dec 16, 2025
46 checks passed
@bkhouri
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Parity] Add parity support for --[no-]static-swift-stdlib support (SwiftBuild)

2 participants