Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 5bdc7b549afe07a2fc6a6bd7f96b0d79c0fa52ef..3625669d2a0152e07b2f205d3e5661df6e6832c9 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -4346,6 +4346,16 @@ |
'-fcolor-diagnostics', |
], |
}], |
+ ['OS=="ios" and target_subarch!="arm32" and \ |
+ "<(GENERATOR)"=="ninja"', { |
+ 'OTHER_CFLAGS': [ |
+ # TODO(ios): when building Chrome for iOS on 64-bit platform |
+ # with Xcode, the -Wshorted-64-to-32 warning is automatically |
+ # enabled. This cause failures when compiling protobuf code, |
+ # so disable the warning. http://crbug.com/359107 |
+ '-Wno-shorten-64-to-32', |
+ ], |
+ }], |
], |
}, |
'conditions': [ |