Fix dead code strip test on AIX

pull/484/merge
Jeffrey Walton 2017-09-18 02:45:03 -04:00
parent cc855dd181
commit 1661ff127a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 2 deletions

View File

@ -208,6 +208,7 @@ XLC_COMPILER=$("$CXX" -qversion 2>&1 | "$GREP" -i -c "IBM XL")
INTEL_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "\(icc\)") INTEL_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "\(icc\)")
MACPORTS_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "MacPorts") MACPORTS_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "MacPorts")
CLANG_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "clang") CLANG_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "clang")
GNU_LINKER=$(ld --version 2>&1 | "$GREP" -i -c "GNU ld")
if [[ ("$SUN_COMPILER" -eq "0") ]]; then if [[ ("$SUN_COMPILER" -eq "0") ]]; then
AMD64=$("$CXX" -dM -E - </dev/null 2>/dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)") AMD64=$("$CXX" -dM -E - </dev/null 2>/dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)")
@ -3071,7 +3072,7 @@ fi
############################################ ############################################
# Dead code stripping # Dead code stripping
if [[ ("$SUN_COMPILER" -eq "0") ]]; then if [[ ("$GNU_LINKER" -eq "1") ]]; then
############################################ ############################################
# Debug build # Debug build

View File

@ -208,6 +208,7 @@ XLC_COMPILER=$("$CXX" -qversion 2>&1 | "$GREP" -i -c "IBM XL")
INTEL_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "\(icc\)") INTEL_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "\(icc\)")
MACPORTS_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "MacPorts") MACPORTS_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "MacPorts")
CLANG_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "clang") CLANG_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "clang")
GNU_LINKER=$(ld --version 2>&1 | "$GREP" -i -c "GNU ld")
if [[ ("$SUN_COMPILER" -eq "0") ]]; then if [[ ("$SUN_COMPILER" -eq "0") ]]; then
AMD64=$("$CXX" -dM -E - </dev/null 2>/dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)") AMD64=$("$CXX" -dM -E - </dev/null 2>/dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)")
@ -3071,7 +3072,7 @@ fi
############################################ ############################################
# Dead code stripping # Dead code stripping
if [[ ("$SUN_COMPILER" -eq "0") ]]; then if [[ ("$GNU_LINKER" -eq "1") ]]; then
############################################ ############################################
# Debug build # Debug build