diff options
| author | Chase Douglas <chase@stackery.io> | 2024-02-20 16:49:07 -0800 |
|---|---|---|
| committer | Chase Douglas <chase@stackery.io> | 2024-02-20 19:16:55 -0800 |
| commit | 2826eb51aa60e2e73d7f35408d2ee2727ec36334 (patch) | |
| tree | bf894d6b01864341c6d89d9c9ab4ea391d926e2f /compiler/rustc_codegen_llvm/src | |
| parent | 344a79c17dd321279897cc287313ff38e0fe255e (diff) | |
| download | rust-2826eb51aa60e2e73d7f35408d2ee2727ec36334.tar.gz rust-2826eb51aa60e2e73d7f35408d2ee2727ec36334.zip | |
Don't build dependencies when retrieving target data layout
`cargo rustc -- <args>` first builds dependencies then calls `rustc <args>` for the current package. Here, we don't want to build dependencies, we just want to call `rustc --print`. An unstable `cargo rustc` `--print` command bypasses building dependencies first. This speeds up execution of this code path and ensures RA doesn't recompile dependencies with the `RUSTC_BOOTSRAP=1` env var flag set. Note that we must pass `-Z unstable-options` twice, first to enable the `cargo` unstable `--print` flag, then later to enable the unstable `rustc` `target-spec-json` print request.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
