verify that llvm-config doesn't export -W

This commit is contained in:
Sylvestre Ledru 2018-12-13 15:35:42 +01:00
parent ee6846e207
commit afc5bd71f2

View File

@ -28,6 +28,11 @@ if test ! -f /usr/lib/llvm-$VERSION/lib/libLLVM-$VERSION.so; then
fi fi
llvm-config-$VERSION --link-shared --libs &> /dev/null 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> echo '#include <stdlib.h>
int main() { int main() {
char *x = (char*)malloc(10 * sizeof(char*)); char *x = (char*)malloc(10 * sizeof(char*));