diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-02-07 14:08:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-07 14:08:39 +0000 |
| commit | 0f9d3b4c21338abf19ff897ea67928423a8663ce (patch) | |
| tree | 6d04acbea53594dc4f6a9a05f30d9ebd6734b7d7 /compiler/rustc_feature/src | |
| parent | 82fe6ed42564e008dd2383cf34323fcacb3a18aa (diff) | |
| parent | b5b21507c1a9ce2aa94a5cce6789d2b3281e62b8 (diff) | |
| download | rust-0f9d3b4c21338abf19ff897ea67928423a8663ce.tar.gz rust-0f9d3b4c21338abf19ff897ea67928423a8663ce.zip | |
Rollup merge of #93723 - jyn514:rerun-if-changed, r=Mark-Simulacrum
Rerun bootstrap's build script when RUSTC changes
Previously, rustbuild would give strange errors if you tried to reuse the same build directory under two names:
```
$ mkdir tmp && cd tmp
$ ../x.py check
Building rustbuild
Finished dev [unoptimized] target(s) in 35.27s
Checking stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
^C
$ cd ..
$ mv tmp/build build
$ ./x.py check
Building rustbuild
Compiling bootstrap v0.0.0 (/home/jnelson/rust-lang/rust/src/bootstrap)
Finished dev [unoptimized] target(s) in 11.18s
failed to execute command: "/home/jnelson/rust-lang/rust/tmp/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "--target" "x86_64-unknown-linux-gnu" "--print" "target-libdir"
error: No such file or directory (os error 2)
```
This fixes the error. Reusing the same build directory is useful if you want to test path-related things in
bootstrap itself, without having to recompile it each time.
For good measure, this also reruns the build script when PATH changes.
Diffstat (limited to 'compiler/rustc_feature/src')
0 files changed, 0 insertions, 0 deletions
