Bug 1382571 - Change install_tooltool_clang_package to use mach artifact toolchain --from-build. r=gps

This commit is contained in:
Mike Hommey
2017-07-26 14:36:07 +09:00
parent 95e9dcc514
commit 61181ba9a0
2 changed files with 4 additions and 7 deletions

View File

@@ -259,9 +259,7 @@ class BaseBootstrapper(object):
'%s does not yet implement ensure_stylo_packages()'
% __name__)
def install_tooltool_clang_package(self, state_dir, checkout_root, manifest_file):
abs_manifest_file = os.path.join(checkout_root, manifest_file)
def install_tooltool_clang_package(self, state_dir, checkout_root, toolchain_job):
mach_binary = os.path.join(checkout_root, 'mach')
if not os.path.exists(mach_binary):
raise ValueError("mach not found at %s" % mach_binary)
@@ -273,8 +271,7 @@ class BaseBootstrapper(object):
raise ValueError("cannot determine path to Python executable")
cmd = [sys.executable, mach_binary, 'artifact', 'toolchain',
'--tooltool-manifest', abs_manifest_file,
'clang']
'--from-build', toolchain_job]
subprocess.check_call(cmd, cwd=state_dir)

View File

@@ -4,5 +4,5 @@
from __future__ import print_function, unicode_literals
WINDOWS = 'browser/config/tooltool-manifests/win64/clang.manifest'
LINUX = 'browser/config/tooltool-manifests/linux64/clang.manifest'
WINDOWS = 'win64-clang-cl'
LINUX = 'linux64-clang'