Skip to content

Conversation

@kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Oct 18, 2023

No description provided.

@kateinoigakukun
Copy link
Member Author

preset=buildbot_linux_crosscompile_wasm
@swift-ci Please test with preset Linux Platform

@kateinoigakukun kateinoigakukun force-pushed the yt/wasm-stdlib-product-pr-verify branch 2 times, most recently from 51340cd to dbc5dba Compare October 18, 2023 01:36
@kateinoigakukun
Copy link
Member Author

preset=buildbot_linux_crosscompile_wasm
@swift-ci Please test with preset Linux Platform

This patch adds a new build products to build and test the Swift stdlib
for WebAssembly.
This adds WebAssembly specific stdlib product instead of adding the new
target in `stdlib-deployment-targets` because unlike darwin platforms
Wasm target has quite different stdlib configuration from host target
and there is no way to specify different stdlib configuration for each
target in `stdlib-deployment-targets` for now.

This patch adds 1 new dependency `wasi-libc` and 3 new build products:
1. `WASILibc` - wasi-libc is a libc implementation for WebAssembly
   System Interface (WASI). This product is required to build the
   compiler runtimes and Swift stdlib.
2. `WasmLLVMRuntimeLibs` - This product builds `./runtimes` directory
   in llvm-project, which contains compiler-rt, libcxx and libcxxabi.
   This product is required to build Swift stdlib.
3. `WasmStdlib` - This product builds standalone Swift stdlib for
   WebAssembly. (Similar to `MinimalStdlib` product, but configured for
   WebAssembly target)
@kateinoigakukun kateinoigakukun force-pushed the yt/wasm-stdlib-product-pr-verify branch from dbc5dba to 6b73f59 Compare October 18, 2023 03:33
@kateinoigakukun
Copy link
Member Author

preset=buildbot_linux_crosscompile_wasm
@swift-ci Please test with preset Linux Platform

@kateinoigakukun
Copy link
Member Author

Okay, it's green! https://ci.swift.org/job/swift-PR-Linux-preset/91/console

-- Testing: 864 tests, 36 workers --
Testing: lit.py: /home/build-user/swift/test/lit.cfg:2859: note: Available features: CMAKE_GENERATOR=Ninja, CODEGENERATOR=AArch64, CODEGENERATOR=ARM, CODEGENERATOR=WebAssembly, CODEGENERATOR=X86, CPU=wasm32, OS=wasi, PTRSIZE=32, SWIFT_VERSION=4, VENDOR=unknown, asserts, autolink-extract, concurrency, concurrency_runtime, cplusplus_driver, crash-recovery, hosttools_mode, libxml2, no_asan, no_lto, nonexecutable_test, optimized_stdlib, optimized_stdlib_wasm32, reflection, shell, single_threaded_concurrency, string_processing, swift_in_compiler, swift_stdlib_no_asserts, swift_swift_parser, threading_none
 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..

Testing Time: 3.73s
  Unsupported      : 533
  Passed           : 328
  Expectedly Failed:   3

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.

1 participant