mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-22 06:50:25 +00:00
add the test to executed llvm ir
This commit is contained in:
parent
46af6614ca
commit
2890d4da10
10
debian/qualify-clang.sh
vendored
10
debian/qualify-clang.sh
vendored
@ -298,6 +298,14 @@ if ! ./foo.bc|grep -q "lli foo"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
||||||
|
|
||||||
echo '#include <stddef.h>' > foo.c
|
echo '#include <stddef.h>' > foo.c
|
||||||
clang-$VERSION -c foo.c
|
clang-$VERSION -c foo.c
|
||||||
|
|
||||||
@ -1318,6 +1326,6 @@ fi
|
|||||||
|
|
||||||
#clean up
|
#clean up
|
||||||
rm -f a.out bar crash-* foo foo.* lldb-cmd.txt main.* test_fuzzer.cc foo.* o
|
rm -f a.out bar crash-* foo foo.* lldb-cmd.txt main.* test_fuzzer.cc foo.* o
|
||||||
rm -rf output matmul.* *profraw opt.ll foo.ll foo.s
|
rm -rf output matmul.* *profraw opt.ll
|
||||||
|
|
||||||
echo "Completed"
|
echo "Completed"
|
||||||
|
Loading…
Reference in New Issue
Block a user