mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-23 22:42:01 +00:00
Enable binfmts support before trying to use it in tests
This commit is contained in:
parent
1608105a72
commit
d375f3d351
1
debian/qualify-clang.sh
vendored
1
debian/qualify-clang.sh
vendored
@ -295,6 +295,7 @@ clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
|
||||
chmod +x foo.bc
|
||||
# only run if the binfmt is installed correctly
|
||||
if /usr/sbin/update-binfmts --display llvm-$VERSION-runtime.binfmt &> /dev/null; then
|
||||
/usr/sbin/update-binfmts --enable llvm-$VERSION-runtime.binfmt
|
||||
if ! ./foo.bc|grep -q "lli foo"; then
|
||||
echo "executing ./foo.bc failed"
|
||||
./foo.bc
|
||||
|
Loading…
Reference in New Issue
Block a user