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
diff --git a/build/common.gypi b/build/common.gypi
index d1caf37..858ff629 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' ] },
}],
],