about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-06-26 04:39:46 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-07-10 16:34:19 -0500
commit56e42b87139154d6f782ccb333ee9f7db4bb99ef (patch)
tree0aec1892facaa819f856e350b496fd6d93fbf140 /compiler/rustc_interface/src
parenta09c668c965f735f4cd59e7158662b9daa0b71ba (diff)
downloadrust-56e42b87139154d6f782ccb333ee9f7db4bb99ef.tar.gz
rust-56e42b87139154d6f782ccb333ee9f7db4bb99ef.zip
Allow using `download-ci-llvm = true` outside the git checkout
@bjorn3 noticed that this is already allowed today when download-llvm is disabled, but breaks with it enabled:
```
$ ./rust2/x.py build
fatal: not a git repository (or any of the parent directories): .git
thread 'main' panicked at 'command did not execute successfully: "git" "rev-list" "--author=bors@rust-lang.org" "-n1" "--first-parent" "HEAD" "--" "/home/jnelson/rust-lang/rust2/src/llvm-project" "/home/jnelson/rust-lang/rust2/src/bootstrap/download-ci-llvm-stamp" "/home/jnelson/rust-lang/rust2/src/version"
expected success, got: exit status: 128', src/bootstrap/native.rs:134:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

Support it too for consistency. It's unclear to me when anyone would need to use this, but @bjorn3
feels we should support it, and it's not much additional effort to get it working.

This also updates a bunch of other git commands that were similarly depending on the current directory.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions