Skip to content

Commit a39e964

Browse files
authored
Remove CARGO_BUILD_TARGET from bootstrap.py
1 parent 98803c1 commit a39e964

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/bootstrap.py

+4
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,10 @@ def build_bootstrap(self):
664664
if self.clean and os.path.exists(build_dir):
665665
shutil.rmtree(build_dir)
666666
env = os.environ.copy()
667+
# `CARGO_BUILD_TARGET` breaks bootstrap build.
668+
# See also: <https://github.com/rust-lang/rust/issues/70208>.
669+
if "CARGO_BUILD_TARGET" in env:
670+
del env["CARGO_BUILD_TARGET"]
667671
env["RUSTC_BOOTSTRAP"] = '1'
668672
env["CARGO_TARGET_DIR"] = build_dir
669673
env["RUSTC"] = self.rustc()

0 commit comments

Comments
 (0)