diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 19:07:03 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 19:07:03 +0000 |
commit | fc642ec6bb1192fef3ff85aafba345a802c06f3d (patch) | |
tree | c36bd37faafb1ef60bd94ad1307ab9ac1866f1af /build/common.gypi | |
parent | 8674b318ac2b973317feb982316779d28fad2b71 (diff) | |
download | chromium_src-fc642ec6bb1192fef3ff85aafba345a802c06f3d.zip chromium_src-fc642ec6bb1192fef3ff85aafba345a802c06f3d.tar.gz chromium_src-fc642ec6bb1192fef3ff85aafba345a802c06f3d.tar.bz2 |
Add support for coverage=1 builds on iOS
Uses the same method as is used on Mac to enable coverage. Some sources
need to be removed in coverage mode due to a toolchain bug.
BUG=None
Review URL: https://chromiumcodereview.appspot.com/11111014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/common.gypi b/build/common.gypi index 92dfe91..bfa6385 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1661,11 +1661,13 @@ }], ['coverage!=0', { 'conditions': [ - ['OS=="mac"', { + ['OS=="mac" or OS=="ios"', { 'xcode_settings': { 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage }, + }], + ['OS=="mac"', { # Add -lgcov for types executable, shared_library, and # loadable_module; not for static_library. # This is a delayed conditional. |