From: Ali Saidi Date: Sat, 20 Nov 2010 00:00:59 +0000 (-0600) Subject: SCons: Fix compilation on OS X X-Git-Tag: stable_2012_02_02~726 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c6f4a0f17f1f74bf913ce49f14517084949b8ed;p=gem5.git SCons: Fix compilation on OS X --- diff --git a/SConstruct b/SConstruct index c3b5b7b35..817e7b921 100644 --- a/SConstruct +++ b/SConstruct @@ -533,10 +533,10 @@ try: uname = platform.uname() if uname[0] == 'Darwin' and compareVersions(uname[2], '9.0.0') >= 0: if int(readCommand('sysctl -n hw.cpu64bit_capable')[0]): - main.Append(CCFLAGS=['-arch x86_64']) - main.Append(CFLAGS=['-arch x86_64']) - main.Append(LINKFLAGS=['-arch x86_64']) - main.Append(ASFLAGS=['-arch x86_64']) + main.Append(CCFLAGS=['-arch', 'x86_64']) + main.Append(CFLAGS=['-arch', 'x86_64']) + main.Append(LINKFLAGS=['-arch', 'x86_64']) + main.Append(ASFLAGS=['-arch', 'x86_64']) except: pass