Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 3cbeee241c527605ed3d619d9735333f4dca6862..e15dd8c49ff4b1a85f1a7ccc179dec2a6a5fe4f2 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -4161,6 +4161,11 @@ |
'SDKROOT': 'macosx<(mac_sdk)', # -isysroot |
'MACOSX_DEPLOYMENT_TARGET': '<(mac_deployment_target)', |
}, |
+ 'conditions': [ |
+ ['"<(GENERATOR)"!="xcode"', { |
+ 'xcode_settings': { 'ARCHS': [ 'x86_64' ] }, |
+ }], |
+ ], |
}], |
['_toolset=="target"', { |
'xcode_settings': { |
@@ -4169,6 +4174,13 @@ |
# instead set it here for target only. |
'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_deployment_target)', |
}, |
+ 'conditions': [ |
+ ['target_arch=="armv7" and "<(GENERATOR)"!="xcode"', { |
+ 'xcode_settings': { 'ARCHS': [ 'armv7' ]}, |
+ }, { |
+ 'xcode_settings': { 'ARCHS': [ 'i386' ] }, |
+ }], |
+ ], |
}], |
['_type=="executable"', { |
'configurations': { |
@@ -4611,10 +4623,10 @@ |
['ios_sdk_path==""', { |
'conditions': [ |
# TODO(justincohen): Ninja only supports simulator for now. |
- ['"<(GENERATOR)"=="ninja"', { |
- 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot |
- }, { |
+ ['"<(GENERATOR)"=="xcode" or ("<(GENERATOR)"=="ninja" and target_arch=="armv7")', { |
'SDKROOT': 'iphoneos<(ios_sdk)', # -isysroot |
+ }, { |
+ 'SDKROOT': 'iphonesimulator<(ios_sdk)', # -isysroot |
}], |
], |
}, { |