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`.
This commit is contained in:
Tobin Harding 2022-03-22 10:12:30 +11:00
parent a3582ff77d
commit 97dc0ea9ac
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ fi
# Webassembly stuff # Webassembly stuff
if [ "$DO_WASM" = true ]; then if [ "$DO_WASM" = true ]; then
clang --version clang-9 --version
CARGO_TARGET_DIR=wasm cargo install --force wasm-pack CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
CC=clang-9 wasm-pack build CC=clang-9 wasm-pack build
@ -75,6 +75,7 @@ fi
# Address Sanitizer # Address Sanitizer
if [ "$DO_ASAN" = true ]; then if [ "$DO_ASAN" = true ]; then
clang --version
cargo clean cargo clean
CC='clang -fsanitize=address -fno-omit-frame-pointer' \ CC='clang -fsanitize=address -fno-omit-frame-pointer' \
RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \ RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \