mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 22:13:39 +00:00
344a79c17d
Some packages (e.g. thiserror) force a recompile if the value of the `RUSTC_BOOTSTRAP` env var changes. RA sets the variable to 1 in order to enable rustc / cargo unstable options it uses. This causes flapping recompiles when building outside of RA. As of Cargo 1.75 the `--keep-going` flag is stable. This change uses the flag without `RUSTC_BOOTSTRAP` if the Cargo version is >= 1.75, and drops `--keep-going` otherwise. This fixes build script recompilation. |
||
---|---|---|
.. | ||
build_scripts.rs | ||
cargo_workspace.rs | ||
cfg_flag.rs | ||
lib.rs | ||
manifest_path.rs | ||
project_json.rs | ||
rustc_cfg.rs | ||
sysroot.rs | ||
target_data_layout.rs | ||
tests.rs | ||
workspace.rs |