mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-03 21:14:50 +00:00
And make sure that the test is only executed when installed correctly
This commit is contained in:
parent
7e32284efe
commit
0d085612b3
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -4,6 +4,7 @@ llvm-toolchain-10 (1:10.0.1~+rc4-1) unstable; urgency=medium
|
||||
* Update the binfmt-support postinstall to match what is done elsewhere
|
||||
in Debian
|
||||
* Add binfmt-support to one of the autopkgtest tests
|
||||
And make sure that the test is only executed when installed correctly
|
||||
Otherwise, fails with
|
||||
"./foo.bc: cannot execute binary file: Exec format error"
|
||||
|
||||
|
29
debian/qualify-clang.sh
vendored
29
debian/qualify-clang.sh
vendored
@ -290,21 +290,26 @@ if ! lli-$VERSION opt.ll|grep -q "lli foo"; then
|
||||
lli-$VERSION opt.ll
|
||||
exit 1
|
||||
fi
|
||||
clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
|
||||
chmod +x foo.bc
|
||||
if ! ./foo.bc|grep -q "lli foo"; then
|
||||
echo "executing ./foo.bc failed"
|
||||
./foo.bc
|
||||
exit 1
|
||||
fi
|
||||
|
||||
clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
|
||||
chmod +x foo.bc
|
||||
if ! ./foo.bc|grep -q "lli foo"; then
|
||||
echo "executing ./foo.bc failed"
|
||||
./foo.bc
|
||||
exit 1
|
||||
fi
|
||||
# only run if the binfmt is installed correctly
|
||||
if /usr/sbin/update-binfmts --display llvm-$VERSION-runtime.binfmt &> /dev/null; then
|
||||
if ! ./foo.bc|grep -q "lli foo"; then
|
||||
echo "executing ./foo.bc failed"
|
||||
./foo.bc
|
||||
exit 1
|
||||
fi
|
||||
|
||||
clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
|
||||
chmod +x foo.bc
|
||||
if ! ./foo.bc|grep -q "lli foo"; then
|
||||
echo "executing ./foo.bc failed"
|
||||
./foo.bc
|
||||
exit 1
|
||||
fi
|
||||
fi # binfmt test
|
||||
|
||||
if ! llvm-dis-$VERSION < foo.bc|grep -q "lli foo"; then
|
||||
echo "llvm assembly code failed"
|
||||
llvm-dis-$VERSION < foo.bc
|
||||
|
Loading…
Reference in New Issue
Block a user