about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-27 19:07:59 +0200
committerGitHub <noreply@github.com>2024-09-27 19:07:59 +0200
commit56e5bfac284a4394700a6df7ca9e176d5347e29a (patch)
tree2803d1f6dded41c317f0ab2ece27e2a86a973313 /src/bootstrap/bootstrap.py
parentf9cd81f3d9e39457a67f6cf2eaf9a2bfc9035eea (diff)
parentd2c58ec6c4b23cbaa3b68ff3fb10853e6a59a45c (diff)
downloadrust-56e5bfac284a4394700a6df7ca9e176d5347e29a.tar.gz
rust-56e5bfac284a4394700a6df7ca9e176d5347e29a.zip
Rollup merge of #130459 - onur-ozkan:#130449, r=albertlarsan68
delete sub build directory "debug" to not delete the change-id file

Fixes #130449
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 666df49012c..04909cd7921 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -625,9 +625,9 @@ class RustBuild(object):
             try:
                 # FIXME: A cheap workaround for https://github.com/rust-lang/rust/issues/125578,
                 # remove this once the issue is closed.
-                bootstrap_out = self.bootstrap_out()
-                if os.path.exists(bootstrap_out):
-                    shutil.rmtree(bootstrap_out)
+                bootstrap_build_artifacts = os.path.join(self.bootstrap_out(), "debug")
+                if os.path.exists(bootstrap_build_artifacts):
+                    shutil.rmtree(bootstrap_build_artifacts)
 
                 p.map(unpack_component, tarballs_download_info)
             finally: