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:
David Major 2020-06-25 16:24:40 +00:00
Родитель ecc4dce851
Коммит f776b2f0cc
1 изменённых файлов: 2 добавлений и 1 удалений

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

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