Bug 1326486 - build-clang: Install imports and asan symbols only in the final stage r=glandium

Otherwise, PGO builds would fail to find asan at stage2 because the instrumented build uses `LLVM_BUILD_RUNTIME=No`.

Differential Revision: https://phabricator.services.mozilla.com/D69082
This commit is contained in:
David Major
2020-04-07 14:12:56 +00:00
parent 149a4e1d41
commit 0fb3cb6a24

View File

@@ -428,8 +428,9 @@ def build_one_stage(cc, cxx, asm, ld, ar, ranlib, libtool,
]
build_package(compiler_rt_build_dir, cmake_args)
os.environ['LIB'] = old_lib
install_import_library(build_dir, inst_dir)
install_asan_symbols(build_dir, inst_dir)
if is_final_stage:
install_import_library(build_dir, inst_dir)
install_asan_symbols(build_dir, inst_dir)
# Return the absolute path of a build tool. We first look to see if the