We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98803c1 commit a39e964Copy full SHA for a39e964
src/bootstrap/bootstrap.py
@@ -664,6 +664,10 @@ def build_bootstrap(self):
664
if self.clean and os.path.exists(build_dir):
665
shutil.rmtree(build_dir)
666
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"]
671
env["RUSTC_BOOTSTRAP"] = '1'
672
env["CARGO_TARGET_DIR"] = build_dir
673
env["RUSTC"] = self.rustc()
0 commit comments