SCons: Fix compilation on OS X
authorAli Saidi <Ali.Saidi@ARM.com>
Sat, 20 Nov 2010 00:00:59 +0000 (18:00 -0600)
committerAli Saidi <Ali.Saidi@ARM.com>
Sat, 20 Nov 2010 00:00:59 +0000 (18:00 -0600)
SConstruct

index c3b5b7b356d3c92491903f1f4b5ccb4460e12701..817e7b921aa75e146770e1a381861c72254ec4cc 100644 (file)
@@ -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