mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-14 10:00:43 +00:00
verify that llvm-config doesn't export -W
This commit is contained in:
parent
ee6846e207
commit
afc5bd71f2
5
debian/qualify-clang.sh
vendored
5
debian/qualify-clang.sh
vendored
@ -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 <stdlib.h>
|
||||
int main() {
|
||||
char *x = (char*)malloc(10 * sizeof(char*));
|
||||
|
Loading…
Reference in New Issue
Block a user