SCons: Fix compilation on OS X
This commit is contained in:
parent
e1b9a815dd
commit
5c6f4a0f17
1 changed files with 4 additions and 4 deletions
|
@ -533,10 +533,10 @@ try:
|
||||||
uname = platform.uname()
|
uname = platform.uname()
|
||||||
if uname[0] == 'Darwin' and compareVersions(uname[2], '9.0.0') >= 0:
|
if uname[0] == 'Darwin' and compareVersions(uname[2], '9.0.0') >= 0:
|
||||||
if int(readCommand('sysctl -n hw.cpu64bit_capable')[0]):
|
if int(readCommand('sysctl -n hw.cpu64bit_capable')[0]):
|
||||||
main.Append(CCFLAGS=['-arch x86_64'])
|
main.Append(CCFLAGS=['-arch', 'x86_64'])
|
||||||
main.Append(CFLAGS=['-arch x86_64'])
|
main.Append(CFLAGS=['-arch', 'x86_64'])
|
||||||
main.Append(LINKFLAGS=['-arch x86_64'])
|
main.Append(LINKFLAGS=['-arch', 'x86_64'])
|
||||||
main.Append(ASFLAGS=['-arch x86_64'])
|
main.Append(ASFLAGS=['-arch', 'x86_64'])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue