Bug 1690937 - Build clang itself using a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D104128
This commit is contained in:
Mike Hommey
2021-02-09 00:44:01 +00:00
parent 93229330f3
commit 2af25115fd
4 changed files with 39 additions and 0 deletions

View File

@@ -323,6 +323,9 @@ def build_one_stage(
if is_linux():
cmake_args += ["-DLLVM_BINUTILS_INCDIR=%s/include" % gcc_dir]
cmake_args += ["-DLLVM_ENABLE_LIBXML2=FORCE_ON"]
sysroot = os.path.join(os.environ.get("MOZ_FETCHES_DIR", ""), "sysroot")
if os.path.exists(sysroot):
cmake_args += ["-DCMAKE_SYSROOT=%s" % sysroot]
if is_windows():
cmake_args.insert(-1, "-DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON")
cmake_args.insert(-1, "-DLLVM_USE_CRT_RELEASE=MT")