commit 218f7be64ff8bfc8e0870e252f90ac38c31051b3
parent 4bea86c2ae8d0c698faa92631a396ea7131ec95f
Author: Mike Hommey <mh+mozilla@glandium.org>
Date: Tue, 9 Dec 2025 08:14:36 +0000
Bug 2004178 - Use DESTDIR when "installing" the rust compiler. r=firefox-build-system-reviewers,ahochheiden
Currently, we rely on setting the prefix to the path that will contain
the rust compiler to be tarred up as an artifact, but this causes
problems when running the same script on Windows.
Instead, by saying the prefix in / and setting DESTDIR to right
location, we get the same effect, but this time, it works on Windows
too.
Differential Revision: https://phabricator.services.mozilla.com/D275154
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/taskcluster/scripts/misc/repack_rust.py b/taskcluster/scripts/misc/repack_rust.py
@@ -423,8 +423,7 @@ def build_src(install_dir, host, targets, patches):
use-lld = true
[install]
- prefix = "{install_dir}"
- sysconfdir = "etc"
+ prefix = "/"
[llvm]
download-ci-llvm = false
@@ -472,6 +471,7 @@ def build_src(install_dir, host, targets, patches):
{
"PATH": os.pathsep.join((tmpdir, clang_bin, os.environ["PATH"])),
"LD_LIBRARY_PATH": clang_lib,
+ "DESTDIR": install_dir,
}
)