Apply -lgcov link to type loadable_bundle when building coverage=1.

Review URL: http://codereview.chromium.org/515045

git-svn-id: http://src.chromium.org/svn/trunk/src/build@35307 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
jrg@chromium.org 2009-12-28 20:45:43 +00:00
Родитель 1f9ff9eb74
Коммит 130a28f831
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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' ] },
}],
],