-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Small compatibility tweaks and improvements to wasi-fyi tests
- Loading branch information
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
set -ueo pipefail | ||
|
||
for input in *.rs; do | ||
output="$(basename $input .rs).wasm" | ||
|
||
echo "Compiling $input" | ||
rustc +nightly --target=wasm32-wasi -o "$output" "$input" | ||
# Some of the tests require unstable Rust features. | ||
# RUSTC_BOOTSTRAP=1 is a trick that allows unstable features to work on stable | ||
# compilers. This is done so the builds don't rely on a rustup installation | ||
# and a separate nightly toolchain. | ||
RUSTC_BOOTSTRAP=1 rustc --target=wasm32-wasi -o "$output" "$input" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters