Rollup merge of #130459 - onur-ozkan:#130449, r=albertlarsan68

delete sub build directory "debug" to not delete the change-id file

Fixes #130449
This commit is contained in:
Matthias Krüger 2024-09-27 19:07:59 +02:00 committed by GitHub
commit 56e5bfac28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: