mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
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:
parent
448e3f3b04
commit
8aedcdc12b
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user