Fix multi-threaded Wasm

This commit is contained in:
dAxpeDDa 2023-02-28 23:51:28 +01:00
parent a09e4cf679
commit c0af587718
No known key found for this signature in database
GPG key ID: 43D62A3EA388E46F
3 changed files with 31 additions and 4 deletions

View file

@ -50,11 +50,14 @@ jobs:
# We're using Windows rather than Ubuntu to run the wasm tests because caching cargo-web
# doesn't currently work on Linux.
- { target: wasm32-unknown-unknown, os: windows-latest, }
include:
- rust_version: nightly
- { target: wasm32-unknown-unknown, os: windows-latest, options: -Zbuild-std=panic_abort,std, rustflags: -Ctarget-feature=+atomics }
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0 --deny warnings"
RUSTFLAGS: "-C debuginfo=0 --deny warnings ${{ matrix.platform.rustflags }}"
OPTIONS: ${{ matrix.platform.options }}
FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
CMD: ${{ matrix.platform.cmd }}