Skip to content

6.2: Build and install Testing and Foundation for Wasm Swift SDK #83059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: release/6.2
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jul 15, 2025

Cherry-pick of #82285, merged as 05204bd

Explanation: Include Swift Testing Foundation and libxml2 into the Swift SDK for WebAssembly
Scope: Limited to Swift SDK for Wasm
Risk: Low, due to limited scope. Changes were incubated on main for 2 weeks with no known issues. Swift Testing changes were incubated for more than a month.
Testing: Manual testing with Swift SDKs produced off main.
Issue: rdar://155865189
Reviewer: @MaxDesiatov

Since 5f2b002, swift-testing is being
compiled with WMO, which removes some of inter-object references in
object files by DCE. The inter-object reference removal revealed a
long-standing issue that the runtime metadata sections of objects in an
archive are not always included in the final binary if symbols from
those objects are not referenced anywhere. To force including all
metadata sections in the final binary, we have to emit everything in a
single object file when building the archive.
This issue happens only for Wasm SDK, which ships swift-testing as a
static archive.
@MaxDesiatov MaxDesiatov requested a review from bnbarham July 15, 2025 10:50
@MaxDesiatov MaxDesiatov changed the title Build and install Foundation for Wasm Swift SDK Build and install Testing and Foundation for Wasm Swift SDK Jul 15, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci build toolchain

@MaxDesiatov MaxDesiatov changed the title Build and install Testing and Foundation for Wasm Swift SDK 6.2: Build and install Testing and Foundation for Wasm Swift SDK Jul 15, 2025
@MaxDesiatov MaxDesiatov added Foundation cross-compilation Area → utils: Cross-compilation of project sources WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support swift 6.2 build-script Area → utils: The build script python Flag: Python source code labels Jul 15, 2025
@MaxDesiatov MaxDesiatov marked this pull request as ready for review July 15, 2025 10:53
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner July 15, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-script Area → utils: The build script cross-compilation Area → utils: Cross-compilation of project sources Foundation python Flag: Python source code swift 6.2 WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants