about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-08-13 12:13:48 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-08-13 12:13:48 +0200
commit72ae308c73a2d9d71715ec35ba1f644989338761 (patch)
tree06bbcdbe152d9c1a2187af9e1e9be3f6d3155e68 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentf982c7616196b433bd65a1df1d07ee0d249701c0 (diff)
downloadrust-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