diff options
author | sdefresne <sdefresne@chromium.org> | 2016-03-17 03:25:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-17 10:26:36 +0000 |
commit | 2461a73bb77217ef3bbb35a3f32ab5e73eae640b (patch) | |
tree | 31a60b30f089cd39f7dced6d320145ba5e528690 /build | |
parent | fe0e7d280a97e68f43f5c66beaf4521030572912 (diff) | |
download | chromium_src-2461a73bb77217ef3bbb35a3f32ab5e73eae640b.zip chromium_src-2461a73bb77217ef3bbb35a3f32ab5e73eae640b.tar.gz chromium_src-2461a73bb77217ef3bbb35a3f32ab5e73eae640b.tar.bz2 |
Add config to enable ARC on iOS/OS X to //build/config.
Add a new config //build/config/compiler:enable_arc that adds the
required flag to enable ARC (automatic reference counting).
BUG=594519
Review URL: https://codereview.chromium.org/1806513002
Cr-Commit-Position: refs/heads/master@{#381686}
Diffstat (limited to 'build')
-rw-r--r-- | build/config/compiler/BUILD.gn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 3b125c2..76a42eb 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -1335,3 +1335,13 @@ config("default_symbols") { assert(false) } } + +if (is_ios || is_mac) { + # On Mac and iOS, this enables support for ARC (automatic ref-counting). + # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. + config("enable_arc") { + common_flags = [ "-fobjc-arc" ] + cflags_objc = common_flags + cflags_objcc = common_flags + } +} |