diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-08-13 12:13:48 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-08-13 12:13:48 +0200 |
| commit | 72ae308c73a2d9d71715ec35ba1f644989338761 (patch) | |
| tree | 06bbcdbe152d9c1a2187af9e1e9be3f6d3155e68 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | f982c7616196b433bd65a1df1d07ee0d249701c0 (diff) | |
| download | rust-72ae308c73a2d9d71715ec35ba1f644989338761.tar.gz rust-72ae308c73a2d9d71715ec35ba1f644989338761.zip | |
Do not unconditionally succeed RUSTC_WRAPPER checks when run by build scripts
rust-analyzer's RUSTC_WRAPPER unconditionally succeeds `cargo check` invocations tripping up build scripts using `cargo check` to probe for successful compilations. To prevent this from happening the RUSTC_WRAPPER now checks if it's run from a build script by looking for the `CARGO_CFG_TARGET_ARCH` env var that cargo sets only when running build scripts.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
