Skip to content

Enable more tests for Embedded Wasm #82399

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 7 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jun 22, 2025

These tests still require a manual lit.py invocation for Wasm, which will be added as a separate CMake target in a future PR.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test linux

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test linux

@MaxDesiatov MaxDesiatov marked this pull request as ready for review June 24, 2025 16:26
@MaxDesiatov MaxDesiatov added test suite Area: test suite embedded Embedded Swift WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support labels Jun 24, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov requested a review from phausler June 24, 2025 17:04
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

There's a predefined list of supported platforms that WASI should be added now that it has an official Embedded Swift SDK.
The overall change should be only localized to executable tests for now.
@MaxDesiatov MaxDesiatov force-pushed the maxd/embedded-wasm-tests branch from 50f4eaf to 2c391e4 Compare June 27, 2025 15:09
@MaxDesiatov MaxDesiatov requested a review from kubamracek June 27, 2025 15:11
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -c -o %t/a.o
// RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos -lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip
// RUN: %target-clang %target-clang-resource-dir-opt %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%target-triple -lc++ -lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the change from %target-cpu-apple-macos to %target-triple still actually work and pass in CI? If yes, then great, but I think I remember that I had to use the former because for macOS, %target-triple includes the version number and that's not in the directory name...

@kubamracek
Copy link
Contributor

LGTM, and thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded Swift test suite Area: test suite WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants