Enable binfmts support profile before using it, this fixes the autopkgtestsuite

This commit is contained in:
Gianfranco Costamagna 2020-08-27 12:47:57 +02:00
parent 4231fb08b7
commit bcaea5c994
2 changed files with 3 additions and 1 deletions

3
debian/changelog vendored
View File

@ -1,8 +1,9 @@
llvm-toolchain-11 (1:11.0.0~+rc2-2) UNRELEASED; urgency=medium
llvm-toolchain-11 (1:11.0.0~+rc2-2) unstable; urgency=medium
[ Gianfranco Costamagna ]
* Disable ocaml support on i386, not reasonable to support it there
(specially for Ubuntu)
* Enable binfmt support before using it in tests, to fix them
[ Sylvestre Ledru ]
* Also link against -latomic on mipsel to fix

View File

@ -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