Fix Xcode 4 compiler paths for --use-gcc
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
fb56b56997
commit
c76ae1a94f
@ -27,8 +27,10 @@ module HomebrewEnvExtension
|
|||||||
self['CXX'] = "#{MacOS.xcode_prefix}/usr/bin/llvm-g++"
|
self['CXX'] = "#{MacOS.xcode_prefix}/usr/bin/llvm-g++"
|
||||||
cflags = ['-O4'] # link time optimisation baby!
|
cflags = ['-O4'] # link time optimisation baby!
|
||||||
elsif MACOS_VERSION >= 10.6 and self.use_gcc?
|
elsif MACOS_VERSION >= 10.6 and self.use_gcc?
|
||||||
self['CC'] = "#{MacOS.xcode_prefix}/usr/bin/gcc"
|
# Xcode 4 makes gcc and g++ #{MacOS.xcode_prefix}/usr/bin/ links to llvm versions
|
||||||
self['CXX'] = "#{MacOS.xcode_prefix}/usr/bin/g++"
|
# so we need to use gcc-4.2 and g++-4.2 for real non-llvm compilers
|
||||||
|
self['CC'] = "#{MacOS.xcode_prefix}/usr/bin/gcc-4.2"
|
||||||
|
self['CXX'] = "#{MacOS.xcode_prefix}/usr/bin/g++-4.2"
|
||||||
cflags = ['-O3']
|
cflags = ['-O3']
|
||||||
else
|
else
|
||||||
# If these aren't set, many formulae fail to build
|
# If these aren't set, many formulae fail to build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user