File tree 2 files changed +13
-15
lines changed
2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -83,21 +83,6 @@ if [ "$DO_DOCS" = true ]; then
83
83
RUSTDOCFLAGS=" -D warnings" cargo +stable doc --all-features
84
84
fi
85
85
86
- # Webassembly stuff
87
- if [ " $DO_WASM " = true ]; then
88
- clang --version
89
- CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
90
-
91
- cp Cargo.toml orig-Cargo.toml
92
- printf ' \n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
93
-
94
- CC=clang wasm-pack build
95
- CC=clang wasm-pack test --node
96
-
97
- rm Cargo.toml
98
- mv orig-Cargo.toml Cargo.toml
99
- fi
100
-
101
86
# Address Sanitizer
102
87
if [ " $DO_ASAN " = true ]; then
103
88
clang --version
Original file line number Diff line number Diff line change @@ -6,6 +6,19 @@ REPO_DIR=$(git rev-parse --show-toplevel)
6
6
7
7
DEPS=" recent minimal"
8
8
9
+ # Webassembly stuff
10
+ if [ " $DO_WASM " = true ]; then
11
+ clang --version
12
+ CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
13
+
14
+ printf ' \n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
15
+
16
+ CC=clang wasm-pack build
17
+ CC=clang wasm-pack test --node
18
+
19
+ exit 0
20
+ fi
21
+
9
22
for dep in $DEPS
10
23
do
11
24
cp " Cargo-$dep .lock" Cargo.lock
You can’t perform that action at this time.
0 commit comments