Skip to content

Commit

Permalink
fix matching --with-gcc= when searching for compiler on osx, fix #1255
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 24, 2012
1 parent 038e5e1 commit ffc7b7b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions scripts/functions/build
Expand Up @@ -10,21 +10,20 @@ __rvm_selected_compiler()
typeset __compiler
for __compiler in "${rvm_configure_flags[@]}"
do
if
[[ "$__compiler" == ^--with-gcc= ]]
then
echo "${__compiler#--with-gcc=}"
return 0
fi
case "$__compiler" in
(--with-gcc=*)
echo "${__compiler#--with-gcc=}"
return 0
;;
esac
done
elif
[[ -n "${CC:-}" ]]
then
echo "${CC}"
return 0
else
return 1
fi
return 1
}

__rvm_found_compiler()
Expand Down

0 comments on commit ffc7b7b

Please sign in to comment.