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:
Родитель
1f9ff9eb74
Коммит
130a28f831
|
@ -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' ] },
|
||||
}],
|
||||
],
|
||||
|
|
Загрузка…
Ссылка в новой задаче