Skip to content

Fix test target compilation for WebAssembly#1348

Merged
owenv merged 1 commit into
swiftlang:mainfrom
owenv:owenv/wasmtests
Apr 28, 2026
Merged

Fix test target compilation for WebAssembly#1348
owenv merged 1 commit into
swiftlang:mainfrom
owenv:owenv/wasmtests

Conversation

@owenv

@owenv owenv commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator
  • Build test targets as static archives when targeting WebAssembly
  • Ensure test runners use --whole-archive when incorporating static archives so we don't drop swift-testing tests
  • Refactor handling of search paths vs direct inputs when constructing archiver arguments
  • Fix an issue where the generic unix test product type wasn't setting ENABLE_TESTING_SEARCH_PATHS correctly

@owenv

owenv commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator Author

@swift-ci test

@owenv owenv force-pushed the owenv/wasmtests branch from 9d88620 to a939a09 Compare April 28, 2026 00:53
@owenv

owenv commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator Author

@swift-ci test

@owenv owenv merged commit d5c113f into swiftlang:main Apr 28, 2026
123 of 126 checks passed
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request Apr 29, 2026
Updated default build command for Android SDK to use 'swift build' instead of 'swift build --build-system native'.

The 4/27 snapshot contains the requisite changes for Android to work.

For Wasm, we want to wait until swiftlang/swift-build#1348 lands before unpinning.
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request Apr 29, 2026
Updated default build command for Android SDK to use 'swift build' instead of 'swift build --build-system native'.

The 4/27 snapshot contains the requisite changes for Android to work.

For Wasm, we want to wait until swiftlang/swift-build#1348 lands before unpinning.
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request Apr 29, 2026
Updated default build command for Android SDK to use 'swift build' instead of 'swift build --build-system native'.

The 4/27 snapshot contains the requisite changes for Android to work.

For Wasm, we want to wait until swiftlang/swift-build#1348 lands before unpinning.
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request Apr 29, 2026
Updated default build command for Android SDK to use 'swift build' instead of 'swift build --build-system native'.

The 4/27 snapshot contains the requisite changes for Android to work.

For Wasm, we want to wait until swiftlang/swift-build#1348 lands before unpinning.
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request Apr 29, 2026
Updated default build command for Android SDK to use 'swift build' instead of 'swift build --build-system native'.

The 4/27 snapshot contains the requisite changes for Android to work.

For Wasm, we want to wait until swiftlang/swift-build#1348 lands before unpinning.
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request Apr 30, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 1, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 1, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
jakepetroules added a commit to jakepetroules/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
justice-adams-apple pushed a commit to swiftlang/github-workflows that referenced this pull request May 12, 2026
- Change default build command to use 'swift build' instead of
  'swift build --build-system native' (the 4/27 snapshot contains
  the requisite changes for Android)
- Use the correct host toolchain for Android build/test
- Add mention of the specific host SDK being used to build

For Wasm, we want to wait until
swiftlang/swift-build#1348 lands before
unpinning.

Co-authored-by: Marc Prud'hommeaux <mwp1@cornell.edu>
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.

2 participants