autopkgtest: only run libllvmlibc test on supported archs

This commit is contained in:
Sylvestre Ledru 2024-05-23 11:49:00 +02:00
parent 212ecd5e0f
commit d5a73bd2c9
2 changed files with 12 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
llvm-toolchain-18 (1:18.1.6-2) unstable; urgency=medium
* autopkgtest: only run libllvmlibc test on supported archs
--
llvm-toolchain-18 (1:18.1.6-1) unstable; urgency=medium
* New upstream release

View File

@ -1252,7 +1252,8 @@ else
fi
# libc
echo "Testing llvmlibc-$VERSION-dev ..."
if dpkg -l|grep -q libllvmlibc-$VERSION-dev; then
echo "Testing libllvmlibc-$VERSION-dev ..."
echo '
#include <math.h>
int main(void)
@ -1287,6 +1288,10 @@ fi
BINDIR=$(llvm-config-$VERSION --bindir)
/usr/lib/llvm-$VERSION/share/libclc/check_external_calls.sh /usr/lib/clc/amdgcn--amdhsa.bc $BINDIR > /dev/null
else
echo "Skipping testing libllvmlibc-$VERSION-dev ..."
echo "doesn't exist on this arch"
fi
# libunwind
echo "Testing libunwind-$VERSION-dev ..."