mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-15 18:05:28 +00:00
improve the test to avoid bug https://bugs.llvm.org/show_bug.cgi\?id\=40659
This commit is contained in:
parent
145e47421b
commit
64825e67ea
10
debian/qualify-clang.sh
vendored
10
debian/qualify-clang.sh
vendored
@ -252,8 +252,14 @@ fi
|
|||||||
clang-$VERSION -fuse-ld=lld -O2 foo.c main.c -o foo
|
clang-$VERSION -fuse-ld=lld -O2 foo.c main.c -o foo
|
||||||
./foo > /dev/null
|
./foo > /dev/null
|
||||||
|
|
||||||
clang-$VERSION -fuse-ld=lld -flto -O2 foo.c main.c -o foo
|
if ls -al1 /usr/bin/ld.lld|grep ld.lld-$VERSION; then
|
||||||
./foo > /dev/null
|
# https://bugs.llvm.org/show_bug.cgi?id=40659
|
||||||
|
# -fuse-ld=lld will call lld
|
||||||
|
# Mismatch of version can fail the check
|
||||||
|
# so, only run it when /usr/bin/lld == $VERSION
|
||||||
|
clang-$VERSION -fuse-ld=lld -flto -O2 foo.c main.c -o foo
|
||||||
|
./foo > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
clang-$VERSION -fuse-ld=lld-$VERSION -O2 foo.c main.c -o foo
|
clang-$VERSION -fuse-ld=lld-$VERSION -O2 foo.c main.c -o foo
|
||||||
./foo > /dev/null
|
./foo > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user