Bootstrap should support build directories within an unrelated git repository #102562
Labels
C-bug
Category: This is a bug.
regression-untriaged
Untriaged performance or correctness regression.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-infra
Relevant to the infrastructure team, which will review and decide on the PR/issue.
Milestone
#98483 recently broke the case where the source directory is built from a git clone, but the build directory is inside a different, unrelated git clone. Bootstrap shouldn't have opinions on where the build directory is; we should fix it.
We can detect this case by seeing if
config.src.join("src").join("stage0.json")
is present; if not, we guessed the source directory incorrectly and we should fallback to the old logic usingCARGO_MANIFEST_DIR
.Originally posted by @cr1901 in #98483 (comment)
The text was updated successfully, but these errors were encountered: