scripts/run_tests.sh: use llvm-ar for CFI build

This is needed on Ubuntu 20.04, otherwise creating the static library
fails with -flto.
This commit is contained in:
Eric Biggers 2020-11-21 12:42:09 -08:00
parent 448e3f3b04
commit 8aedcdc12b

View File

@ -287,7 +287,7 @@ run_tests() {
"-fvisibility=hidden") "-fvisibility=hidden")
if cflags_supported "${cflags[@]}"; then if cflags_supported "${cflags[@]}"; then
begin "Running tests with CFI" begin "Running tests with CFI"
CFLAGS="$CFLAGS ${cflags[*]}" do_run_tests --quick CFLAGS="$CFLAGS ${cflags[*]}" AR=llvm-ar do_run_tests --quick
end end
else else
log "Skipping CFI tests because compiler ($CC_VERSION) doesn't support CFI" log "Skipping CFI tests because compiler ($CC_VERSION) doesn't support CFI"