Use the LLVM branch of gcc, which produces better code.

Suggested by celgilles.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6892 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-01-21 17:40:53 +00:00
parent f08563efd9
commit 17d9888f3c
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ if sys.platform == 'darwin':
env['SHLINKFLAGS'] += ['-Xarch_i386', '-Wl,-read_only_relocs,suppress'] env['SHLINKFLAGS'] += ['-Xarch_i386', '-Wl,-read_only_relocs,suppress']
if platform.mac_ver()[0] >= '10.6.0': if platform.mac_ver()[0] >= '10.6.0':
env['CC'] = "llvm-gcc-4.2 -ObjC"
env['CXX'] = "llvm-g++-4.2 -ObjC++"
env['CCFLAGS'] += ['-Wextra-tokens', '-Wnewline-eof'] env['CCFLAGS'] += ['-Wextra-tokens', '-Wnewline-eof']
env['FRAMEWORKSFLAGS'] += ['-weak_framework', 'OpenCL'] env['FRAMEWORKSFLAGS'] += ['-weak_framework', 'OpenCL']