From 8aedcdc12b68903d9e7b4847e723fd8cad556fa4 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 21 Nov 2020 12:42:09 -0800 Subject: [PATCH] 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. --- scripts/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 786ed68..81eea74 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -287,7 +287,7 @@ run_tests() { "-fvisibility=hidden") if cflags_supported "${cflags[@]}"; then begin "Running tests with CFI" - CFLAGS="$CFLAGS ${cflags[*]}" do_run_tests --quick + CFLAGS="$CFLAGS ${cflags[*]}" AR=llvm-ar do_run_tests --quick end else log "Skipping CFI tests because compiler ($CC_VERSION) doesn't support CFI"