Add IS_DARWIN check for MacPorts compilers

pull/253/merge
Jeffrey Walton 2016-09-06 07:44:39 -04:00
parent 29e190343c
commit 65f8c7478f
1 changed files with 1 additions and 1 deletions

View File

@ -4638,7 +4638,7 @@ fi
############################################
# Perform a quick check with MacPorts compilers, if available.
if [[ ("$MACPORTS_COMPILER" -eq "0") ]]; then
if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then
MACPORTS_CXX=$(find /opt/local/bin -name 'g++-mp-4*' 2>/dev/null | head -1)
if [[ (-z "$MACPORTS_CXX") ]]; then