about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/errors.rs
diff options
context:
space:
mode:
authorWeihang Lo <me@weihanglo.tw>2024-05-23 23:56:17 -0400
committerWeihang Lo <me@weihanglo.tw>2024-05-25 23:23:47 -0400
commitc81a40bbc02bb44aa99b3a94322dbf07e7a62ce1 (patch)
tree3c6f46fb7c109d586a2fb54c5966789ae2fb8791 /compiler/rustc_mir_transform/src/errors.rs
parent0a59f113629aafb6e5ee55ad04a2d451a11d8466 (diff)
downloadrust-c81a40bbc02bb44aa99b3a94322dbf07e7a62ce1.tar.gz
rust-c81a40bbc02bb44aa99b3a94322dbf07e7a62ce1.zip
opt-dist: dont overrwite config.toml when verifying
This is another step toward making opt-dist work in sandboxed environments

opt-dist verifies the final built rustc against a subset of rustc test
suite. However it overwrote the pre-existing `config.toml` [^1],
and that results in ./vendor/ directory removed [^2].

Instead of overwriting, this patch use `--set <config-value>` to
override paths to rustc / cargo / llvm-config.

[^1]: https://github.com/rust-lang/rust/blob/606afbb617a2949a4e35c4b0258ff94c980b9451/src/tools/opt-dist/src/tests.rs#L62-L77
[^2]: https://github.com/rust-lang/rust/blob/8679004993f08807289911d9f400f4ac4391d2bc/src/bootstrap/bootstrap.py#L1057
Diffstat (limited to 'compiler/rustc_mir_transform/src/errors.rs')
0 files changed, 0 insertions, 0 deletions