From d5a73bd2c9551571084ccecf4307ef94e0b75d96 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 23 May 2024 11:49:00 +0200 Subject: [PATCH] autopkgtest: only run libllvmlibc test on supported archs --- debian/changelog | 6 ++++++ debian/qualify-clang.sh | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index bbfbc314..0f40f7f1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index f8b0b62e..97829ee8 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -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 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 ..."