Skip to content
Snippets Groups Projects
Commit 6ce7d800 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Don't try to use gcc-4.2 on XCode >= 4.2

It was removed in 4.2.
parent 68d6c346
No related branches found
No related tags found
No related merge requests found
...@@ -1936,10 +1936,12 @@ AC_DEFUN([XCODE_VERSION],[ ...@@ -1936,10 +1936,12 @@ AC_DEFUN([XCODE_VERSION],[
# Finds where gcc is # Finds where gcc is
AC_DEFUN([FIND_GCC],[ AC_DEFUN([FIND_GCC],[
if test "$TargetOS_CPP" = "darwin" && if test "$TargetOS_CPP" = "darwin" &&
test "$XCodeVersion1" -ge 4 test "$XCodeVersion1" -eq 4 &&
test "$XCodeVersion2" -lt 2
then then
# From Xcode 4, use 'gcc-4.2' to force the use of the gcc legacy # In Xcode 4.1, 'gcc-4.2' is the gcc legacy backend (rather
# backend (instead of the LLVM backend) # than the LLVM backend). We prefer the legacy gcc, but in
# Xcode 4.2 'gcc-4.2' was removed.
FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc-4.2]) FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc-4.2])
else else
FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc]) FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment