Skip to content

Commit 97dc0ea

Browse files
committed
Run correct clang --version
For the test that uses `clang-9` do the sanity call using `clang-9` instead of `clang`. For the test that uses `clang` add a sanity call to `clang --version`.
1 parent a3582ff commit 97dc0ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fi
6666

6767
# Webassembly stuff
6868
if [ "$DO_WASM" = true ]; then
69-
clang --version
69+
clang-9 --version
7070
CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
7171
printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
7272
CC=clang-9 wasm-pack build
@@ -75,6 +75,7 @@ fi
7575

7676
# Address Sanitizer
7777
if [ "$DO_ASAN" = true ]; then
78+
clang --version
7879
cargo clean
7980
CC='clang -fsanitize=address -fno-omit-frame-pointer' \
8081
RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \

0 commit comments

Comments
 (0)