From afc5bd71f2753d09b8862015f1fdf073def41491 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 13 Dec 2018 15:35:42 +0100 Subject: [PATCH] verify that llvm-config doesn't export -W --- debian/qualify-clang.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 08e61353..b1d2d41f 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -28,6 +28,11 @@ if test ! -f /usr/lib/llvm-$VERSION/lib/libLLVM-$VERSION.so; then fi llvm-config-$VERSION --link-shared --libs &> /dev/null +if llvm-config-$VERSION --cxxflags | grep " \-W"; then + echo "llvm-config should not export -W warnings" + exit 1 +fi + echo '#include int main() { char *x = (char*)malloc(10 * sizeof(char*));