From 546870edd8779db78d687a751d716c293928089d Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Sat, 18 Feb 2012 12:03:47 -0800 Subject: [PATCH] build: use proper `-arch` for target_arch on OS X --- common.gypi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common.gypi b/common.gypi index 6640578c7e7..00fad438bc6 100644 --- a/common.gypi +++ b/common.gypi @@ -170,6 +170,14 @@ 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, }], ], + 'conditions': [ + ['target_arch=="ia32"', { + 'xcode_settings': {'ARCHS': ['i386']}, + }], + ['target_arch=="x64"', { + 'xcode_settings': {'ARCHS': ['x86_64']}, + }], + ], }], ], }