From a222d20fa75f26530c957c61c34f25493bce414e Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Mon, 6 May 2013 12:25:10 +0000 Subject: [PATCH] Fix subscripting support. Subscripting needs libarc_lite to works. To force compilation with this library, the linker must have the -f-obj-arc parameter. R=stuartmorgan@chromium.org Review URL: https://chromiumcodereview.appspot.com/14850014 git-svn-id: http://src.chromium.org/svn/trunk/src/build@198428 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.gypi b/common.gypi index c0c68db2d..0ebc85bbb 100644 --- a/common.gypi +++ b/common.gypi @@ -4033,6 +4033,13 @@ }, }, }, + '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"', {