Bug 1584175 - Add lib/libclang-cpp.* to the clang-tidy artifact. r=froydnj,dmajor

Since we've upgraded to clang 9, clang-format changed and now uses dynamic libraries
for the clang tooling lib that it leverages.

Differential Revision: https://phabricator.services.mozilla.com/D47265

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andi-Bogdan Postelnicu 2019-09-27 12:19:13 +00:00
Родитель b54e3ba68d
Коммит b5b6fc3017
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -507,9 +507,10 @@ def prune_final_dir_for_clang_tidy(final_dir, osx_cross_compile):
name = os.path.basename(f)
if name == "clang":
continue
if osx_cross_compile and name == 'libLLVM.dylib':
if osx_cross_compile and name in ['libLLVM.dylib', 'libclang-cpp.dylib']:
continue
if is_linux() and fnmatch.fnmatch(name, 'libLLVM*.so'):
if is_linux() and (fnmatch.fnmatch(name, 'libLLVM*.so') or
fnmatch.fnmatch(name, 'libclang-cpp.so*')):
continue
delete(f)
for f in glob.glob("%s/lib/clang/*" % final_dir):