build: use proper `-arch` for target_arch on OS X
authorNathan Rajlich <nathan@tootallnate.net>
Sat, 18 Feb 2012 20:03:47 +0000 (12:03 -0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 20 Feb 2012 10:49:32 +0000 (11:49 +0100)
common.gypi

index 6640578..00fad43 100644 (file)
             'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
           }],
         ],
+        'conditions': [
+          ['target_arch=="ia32"', {
+            'xcode_settings': {'ARCHS': ['i386']},
+          }],
+          ['target_arch=="x64"', {
+            'xcode_settings': {'ARCHS': ['x86_64']},
+          }],
+        ],
       }],
     ],
   }