mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
moved all crates into seperate folder + related path fixes
This commit is contained in:
parent
12ef03bb86
commit
eee85fa45d
1063 changed files with 92 additions and 93 deletions
12
crates/repl_test/test_wasm.sh
Executable file
12
crates/repl_test/test_wasm.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
set -eux
|
||||
|
||||
# Build the compiler for WebAssembly target
|
||||
# We *could* write a build.rs to do this but we'd have nested cargo processes with different targets.
|
||||
# If we ever decide to do that, one of the cargo processes will need to use the `--target-dir` option.
|
||||
|
||||
# We need to clear RUSTFLAGS for this command, as CI sets normally some flags that are specific to CPU targets.
|
||||
# Tests target wasm32-wasi instead of wasm32-unknown-unknown, so that we can debug with println! and dbg!
|
||||
RUSTFLAGS="" cargo build --target wasm32-wasi -p roc_repl_wasm --no-default-features --features wasmer --release
|
||||
|
||||
# Build & run the test code on *native* target, not WebAssembly
|
||||
cargo test -p repl_test --features wasm -- --test-threads=1
|
Loading…
Add table
Add a link
Reference in a new issue