run-make: we should document cargo()
's caveats
#138070
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
A-run-make
Area: port run-make Makefiles to rmake.rs
A-testsuite
Area: The testsuite used to check the correctness of rustc
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
run_make_support
exposes acargo()
, which is the stage Ncargo
1 passed when./x test run-make --stage=N
that will exercise the stage N underlyingrustc
.Care needs to be taken when using
cargo()
in run-make tests:#[rustc_private]
that tries to depend on compiler artifacts used to build the rustc under test or from build artifacts stage0/bootstrap sysroot.--manifest-path=..
to its localized cargo package to avoid picking up the source rootCargo.toml
virtual manifest.-Zbuild-std=...
for all the targets is going to take a long time, and it needs to be carefully evaluated if the run time vs benefit of the test (and its approach) is worth the trade-off.See also github.com//issues/134109.
Footnotes
It depends for
COMPILETEST_FORCE_STAGE0=1 ./x test run-make --stage 0
... If the user specifies a custom rustc and/or cargo, and this configuration is not very well-supported (may need some kind of//@ ignore-stage-0
on some run-make tests...). ↩The text was updated successfully, but these errors were encountered: