Chromium Code Reviews| Index: build/common.gypi |
| diff --git a/build/common.gypi b/build/common.gypi |
| index 73923adccef60582f63d06ec8fb71e1132c48715..c73ac6182dcb26f932756c42fa20f9d77ec83046 100644 |
| --- a/build/common.gypi |
| +++ b/build/common.gypi |
| @@ -4037,17 +4037,15 @@ |
| }, |
| }, |
| }, |
| - 'xcode_settings': { |
| - # It is necessary to link with the -fobjc-arc flag to use |
| - # subscripting on iOS < 6. |
| - 'OTHER_LDFLAGS': [ |
| - '-fobjc-arc', |
| - ], |
| - }, |
| 'conditions': [ |
| - # TODO(justincohen): ninja builds don't support signing yet. |
| - ['"<(GENERATOR)"!="ninja"', { |
| + ['"<(GENERATOR)"=="xcode"', { |
| 'xcode_settings': { |
| + # It is necessary to link with the -fobjc-arc flag to use |
| + # subscripting on iOS < 6. |
| + 'OTHER_LDFLAGS': [ |
| + '-fobjc-arc', |
| + ], |
|
Nico
2013/05/21 20:02:38
Shouldn't this part be gated on clang!=1 too?
justincohen
2013/05/21 23:33:15
I wonder if we will ever do iOS Xcode builds with
|
| + # TODO(justincohen): ninja builds don't support signing yet. |
| 'conditions': [ |
| ['chromium_ios_signing', { |
| # iOS SDK wants everything for device signed. |
| @@ -4059,6 +4057,36 @@ |
| ], |
| }, |
| }], |
| + ['clang==1', { |
| + 'target_conditions': [ |
| + ['_toolset=="target"', { |
| + 'variables': { |
| + 'developer_dir': '<!(xcode-select -print-path)', |
| + 'arc_toolchain_path': '<(developer_dir)/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc', |
| + }, |
| + # It is necessary to force load libarclite from Xcode for |
| + # third_party/llvm-build because libarclite_* is only |
| + # distributed by Xcode. |
| + 'conditions': [ |
| + ['target_arch=="armv7"', { |
| + 'xcode_settings': { |
| + 'OTHER_LDFLAGS': [ |
| + '-force_load', |
| + '<(arc_toolchain_path)/libarclite_iphoneos.a', |
| + ], |
| + }, |
| + }, { |
| + 'xcode_settings': { |
| + 'OTHER_LDFLAGS': [ |
| + '-force_load', |
| + '<(arc_toolchain_path)/libarclite_iphonesimulator.a', |
| + ], |
| + }, |
| + }], |
| + ], |
| + }], |
| + ], |
| + }], |
| ], |
| }], |
| ], # target_conditions |