Fix failed feature detections under IBM XL C/C++ compiler

This commit is contained in:
Jeffrey Walton 2017-09-09 18:44:08 -04:00
parent ba569b55ca
commit 66c84a9af4
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 34 additions and 0 deletions

View File

@ -699,6 +699,23 @@ if [[ (-z "$WANT_BENCHMARKS") ]]; then
WANT_BENCHMARKS=1
fi
# IBM XL C/C++ compiler fixups. Not sure why it fails to return non-0 on failure...
if [[ "$XLC_COMPILER" -ne "0" ]]; then
HAVE_CXX03=0
HAVE_GNU03=0
HAVE_CXX11=0
HAVE_GNU11=0
HAVE_CXX14=0
HAVE_GNU14=0
HAVE_CXX17=0
HAVE_GNU17=0
HAVE_OMP=0
HAVE_ASAN=0
HAVE_BSAN=0
HAVE_UBSAN=0
HAVE_LDGOLD=0
fi
############################################
# System information

View File

@ -699,6 +699,23 @@ if [[ (-z "$WANT_BENCHMARKS") ]]; then
WANT_BENCHMARKS=1
fi
# IBM XL C/C++ compiler fixups. Not sure why it fails to return non-0 on failure...
if [[ "$XLC_COMPILER" -ne "0" ]]; then
HAVE_CXX03=0
HAVE_GNU03=0
HAVE_CXX11=0
HAVE_GNU11=0
HAVE_CXX14=0
HAVE_GNU14=0
HAVE_CXX17=0
HAVE_GNU17=0
HAVE_OMP=0
HAVE_ASAN=0
HAVE_BSAN=0
HAVE_UBSAN=0
HAVE_LDGOLD=0
fi
############################################
# System information