зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1647839 - Don't pass -coverage-no-function-names-in-data in clang 11 r=marco
In clang-11 the flag's behavior became the default, and in fact the flag is no longer accepted so we get an unrecognized option error. Differential Revision: https://phabricator.services.mozilla.com/D81124
This commit is contained in:
Родитель
ecc4dce851
Коммит
f776b2f0cc
|
@ -1820,7 +1820,8 @@ set_define('MOZ_CODE_COVERAGE', code_coverage)
|
|||
def coverage_cflags(target, c_compiler, vc_path, build_env):
|
||||
cflags = ['--coverage']
|
||||
|
||||
if c_compiler.type in ('clang', 'clang-cl'):
|
||||
# clang 11 no longer accepts this flag (its behavior became the default)
|
||||
if c_compiler.type in ('clang', 'clang-cl') and c_compiler.version < '11.0.0':
|
||||
cflags += [
|
||||
'-Xclang', '-coverage-no-function-names-in-data',
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче