From 9b5c79fccccc4e907bb13d6aac463a0f1c1741ef Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 27 Nov 2019 11:37:15 -0500 Subject: [PATCH 1/3] Update Git for Windows on CI. --- etc/taskcluster/decisionlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py index ef585657a32..dd277001b0c 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -533,8 +533,8 @@ class WindowsGenericWorkerTask(GenericWorkerTask): .with_path_from_homedir("git\\cmd") \ .with_directory_mount( "https://github.com/git-for-windows/git/releases/download/" + - "v2.19.0.windows.1/MinGit-2.19.0-64-bit.zip", - sha256="424d24b5fc185a9c5488d7872262464f2facab4f1d4693ea8008196f14a3c19b", + "v2.24.0.windows.2/MinGit-2.24.0.2-64-bit.zip", + sha256="c33aec6ae68989103653ca9fb64f12cabccf6c61d0dde30c50da47fc15cf66e2", path="git", ) From fcdf347d8381435ff6af7c933a886f7565f05b80 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 27 Nov 2019 11:56:47 -0500 Subject: [PATCH 2/3] Support overriding the moztools path order. --- python/servo/command_base.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 20c02852d8a..7473b78844d 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -659,10 +659,16 @@ install them, let us know by filing a bug!") env["OPENSSL_LIB_DIR"] = path.join(openssl_base_dir, "lib") env["OPENSSL_LIBS"] = "libssl:libcrypto" # Link moztools, used for building SpiderMonkey - env["MOZTOOLS_PATH"] = os.pathsep.join([ + moztools_paths = [ path.join(self.msvc_package_dir("moztools"), "bin"), path.join(self.msvc_package_dir("moztools"), "msys", "bin"), - ]) + ] + # In certain cases we need to ensure that tools with conflicting MSYS versions + # can be placed in the PATH ahead of the moztools directories. + moztools_path_prepend = env.get("MOZTOOLS_PATH_PREPEND", None) + if moztools_path_prepend: + moztools_paths.insert(0, moztools_path_prepend) + env["MOZTOOLS_PATH"] = os.pathsep.join(moztools_paths) # Link autoconf 2.13, used for building SpiderMonkey env["AUTOCONF"] = path.join(self.msvc_package_dir("moztools"), "msys", "local", "bin", "autoconf-2.13") # Link LLVM From 5ebccf22f54a6d49a429e1039e7bbda57fc4b3ab Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 27 Nov 2019 11:59:33 -0500 Subject: [PATCH 3/3] Force GitForWindows to be closer to the front of PATH on CI than moztools. --- etc/taskcluster/decision_task.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py index 5be3deef1d3..12f23734464 100644 --- a/etc/taskcluster/decision_task.py +++ b/etc/taskcluster/decision_task.py @@ -158,6 +158,7 @@ windows_build_env = { "all": { "PYTHON3": "%HOMEDRIVE%%HOMEPATH%\\python3\\python.exe", "LINKER": "lld-link.exe", + "MOZTOOLS_PATH_PREPEND": "%HOMEDRIVE%%HOMEPATH%\\git\\cmd", }, }