Bug 1577049 - Provide sccache and dist-toolchains during bootstrap on Windows. r=froydnj

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Chris Manchester 2019-08-28 18:31:23 +00:00
parent 697c695a3c
commit 1dcf500d9c
2 changed files with 16 additions and 0 deletions

View File

@ -100,6 +100,17 @@ class MozillaBuildBootstrapper(BaseBootstrapper):
self.install_toolchain_static_analysis(
state_dir, checkout_root, static_analysis.WINDOWS_CLANG_TIDY)
def ensure_sccache_packages(self, state_dir, checkout_root):
from mozboot import sccache
self.install_toolchain_artifact(state_dir, checkout_root, sccache.WIN64_SCCACHE)
self.install_toolchain_artifact(state_dir, checkout_root,
sccache.RUSTC_DIST_TOOLCHAIN,
no_unpack=True)
self.install_toolchain_artifact(state_dir, checkout_root,
sccache.CLANG_DIST_TOOLCHAIN,
no_unpack=True)
def ensure_stylo_packages(self, state_dir, checkout_root):
# On-device artifact builds are supported; on-device desktop builds are not.
if is_aarch64_host():

View File

@ -6,5 +6,10 @@ from __future__ import absolute_import, print_function, unicode_literals
LINUX_SCCACHE = 'linux64-sccache'
MACOS_SCCACHE = 'macosx64-sccache'
WIN64_SCCACHE = 'win64-sccache'
# sccache-dist currently expects clients to provide toolchains when
# distributing from macOS or Windows, so we download linux binaries capable
# of cross-compiling for these cases.
RUSTC_DIST_TOOLCHAIN = 'rustc-dist-toolchain'
CLANG_DIST_TOOLCHAIN = 'clang-dist-toolchain'