-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete most of src/bootstrap/bin/rustc.rs
#64316
Commits on Sep 23, 2019
-
bootstrap: Add a helper for managing RUSTFLAGS
Most of `bootstrap/bin/rustc.rs` doesn't need to exist with the advent of `RUSTFLAGS` (yes this is super old) so this starts by refactoring a bit to make it easier locally in the `Builder::cargo` method to append to `RUSTFLAGS` that gets down to rustc.
Configuration menu - View commit details
-
Copy full SHA for f6c87ab - Browse repository at this point
Copy the full SHA f6c87abView commit details -
bootstrap: Delete handling of
RUSTC_METADATA_SUFFIX
This is already handled by `__CARGO_DEFAULT_LIB_METADATA` so there's no need to doubly do it.
Configuration menu - View commit details
-
Copy full SHA for 557e69b - Browse repository at this point
Copy the full SHA 557e69bView commit details -
bootstrap: Move
RUSTC_BREAK_ON_ICE
out of shimThis is always set, so let's just always set it elsewhere to reduce the need for our `rustc.rs` shim.
Configuration menu - View commit details
-
Copy full SHA for 4f35166 - Browse repository at this point
Copy the full SHA 4f35166View commit details -
bootstrap: Move
-Zexternal-macro-backtrace
to builderNo need for this to be in `rustc.rs`
Configuration menu - View commit details
-
Copy full SHA for 812117a - Browse repository at this point
Copy the full SHA 812117aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c36849a - Browse repository at this point
Copy the full SHA c36849aView commit details -
bootstrap: Remove usage of
RUSTC_TARGET_LINKER
Cargo has a native enviroment variable for this.
Configuration menu - View commit details
-
Copy full SHA for d63e2de - Browse repository at this point
Copy the full SHA d63e2deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04cb065 - Browse repository at this point
Copy the full SHA 04cb065View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac29809 - Browse repository at this point
Copy the full SHA ac29809View commit details -
bootstrap: Handle target-specific cargo env vars
This commit ensure that we handle target-specific env vars for RUSTFLAGS through Cargo as well.
Configuration menu - View commit details
-
Copy full SHA for b82d86e - Browse repository at this point
Copy the full SHA b82d86eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bec962 - Browse repository at this point
Copy the full SHA 1bec962View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a648b6 - Browse repository at this point
Copy the full SHA 3a648b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8b19f2 - Browse repository at this point
Copy the full SHA f8b19f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22699d3 - Browse repository at this point
Copy the full SHA 22699d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d6f3fe - Browse repository at this point
Copy the full SHA 2d6f3feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5abc4cd - Browse repository at this point
Copy the full SHA 5abc4cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cc6eb4 - Browse repository at this point
Copy the full SHA 5cc6eb4View commit details -
Allow adding
RUSTFLAGS
afterBuilder::cargo
This commit changes the return type of `Builder::cargo` to return a builder that allows dynamically adding more `RUSTFLAGS` values after-the-fact. While not used yet, this will later be used to delete more of `rustc.rs`
Configuration menu - View commit details
-
Copy full SHA for 0b6766d - Browse repository at this point
Copy the full SHA 0b6766dView commit details -
Move handling of
{MUSL,WASI}_ROOT
tocompile.rs
No longer any need for them to live in `rustc.rs`!
Configuration menu - View commit details
-
Copy full SHA for 3d13f46 - Browse repository at this point
Copy the full SHA 3d13f46View commit details -
Move handling of
RUSTC_PARALLEL_COMPILER
tocompile.rs
No longer needs to live in `rustc.rs`
Configuration menu - View commit details
-
Copy full SHA for a816fa1 - Browse repository at this point
Copy the full SHA a816fa1View commit details -
Move
--cfg bootstrap
out ofrustc.rs
Instead let's do this via `RUSTFLAGS` in `builder.rs`. Currently requires a submodule update of `stdarch` to fix a problem with previous compilers.
Configuration menu - View commit details
-
Copy full SHA for b3f95f4 - Browse repository at this point
Copy the full SHA b3f95f4View commit details -
Move handling of
-Cprefer-dynamic
intobuilder.rs
This logic is *super* old and can be tweaked and moved into `builder.rs`
Configuration menu - View commit details
-
Copy full SHA for 385470b - Browse repository at this point
Copy the full SHA 385470bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1607871 - Browse repository at this point
Copy the full SHA 1607871View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b34ef6 - Browse repository at this point
Copy the full SHA 9b34ef6View commit details -
Fix compiling libserialize tests
They've got new warnings turned on so they need more `#![allow]`
Configuration menu - View commit details
-
Copy full SHA for 7b907de - Browse repository at this point
Copy the full SHA 7b907deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7342325 - Browse repository at this point
Copy the full SHA 7342325View commit details -
No need to remove target-specific RUSTFLAGS
Turns out Cargo favors RUSTFLAGS!
Configuration menu - View commit details
-
Copy full SHA for ff6a7c7 - Browse repository at this point
Copy the full SHA ff6a7c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8253c1 - Browse repository at this point
Copy the full SHA d8253c1View commit details -
rustbuild: Pass
-Zsave-analysis
during testsThis is needed to ensure that the crates during a normal build are shared with the crates during testing, otherwise they'll end up hasing differently and we'll recompile crates like `core` during tests.
Configuration menu - View commit details
-
Copy full SHA for 008ed18 - Browse repository at this point
Copy the full SHA 008ed18View commit details -
Remove
--enable-extended
from cross dist builderShouldn't have an effect on produced artifacts and otherwise is causing issues where `-Zsave-analysis` is passed during tests but fails compilation.
Configuration menu - View commit details
-
Copy full SHA for b923306 - Browse repository at this point
Copy the full SHA b923306View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a8897f - Browse repository at this point
Copy the full SHA 1a8897fView commit details