summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-28 20:45:43 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-28 20:45:43 +0000
commite4fb84ce23c47855852f84a7d7d4040abf71d61f (patch)
tree9801d786dc2530820f571f083c364eda0dd15d9e /build
parent6a2e266cc69caded27bc6ffa6d5fb7b2b82a208b (diff)
downloadchromium_src-e4fb84ce23c47855852f84a7d7d4040abf71d61f.zip
chromium_src-e4fb84ce23c47855852f84a7d7d4040abf71d61f.tar.gz
chromium_src-e4fb84ce23c47855852f84a7d7d4040abf71d61f.tar.bz2
Apply -lgcov link to type loadable_bundle when building coverage=1.
Review URL: http://codereview.chromium.org/515045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/common.gypi b/build/common.gypi
index d1caf37..858ff62 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -361,10 +361,11 @@
'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs
'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage
},
- # Add -lgcov for executables and shared_libraries, not for
- # static_libraries. This is a delayed conditional.
+ # Add -lgcov for types executable, shared_library, and
+ # loadable_module; not for static_library.
+ # This is a delayed conditional.
'target_conditions': [
- ['_type=="executable" or _type=="shared_library"', {
+ ['_type!="static_library"', {
'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] },
}],
],