Skip to content
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

Merged
merged 30 commits into from
Sep 24, 2019

Commits on Sep 23, 2019

  1. 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.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    f6c87ab View commit details
    Browse the repository at this point in the history
  2. 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.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    557e69b View commit details
    Browse the repository at this point in the history
  3. bootstrap: Move RUSTC_BREAK_ON_ICE out of shim

    This is always set, so let's just always set it elsewhere to reduce the
    need for our `rustc.rs` shim.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    4f35166 View commit details
    Browse the repository at this point in the history
  4. bootstrap: Move -Zexternal-macro-backtrace to builder

    No need for this to be in `rustc.rs`
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    812117a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c36849a View commit details
    Browse the repository at this point in the history
  6. bootstrap: Remove usage of RUSTC_TARGET_LINKER

    Cargo has a native enviroment variable for this.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    d63e2de View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    04cb065 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ac29809 View commit details
    Browse the repository at this point in the history
  9. bootstrap: Handle target-specific cargo env vars

    This commit ensure that we handle target-specific env vars for RUSTFLAGS
    through Cargo as well.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    b82d86e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1bec962 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3a648b6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f8b19f2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    22699d3 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2d6f3fe View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5abc4cd View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5cc6eb4 View commit details
    Browse the repository at this point in the history
  17. Allow adding RUSTFLAGS after Builder::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`
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    0b6766d View commit details
    Browse the repository at this point in the history
  18. Move handling of {MUSL,WASI}_ROOT to compile.rs

    No longer any need for them to live in `rustc.rs`!
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    3d13f46 View commit details
    Browse the repository at this point in the history
  19. Move handling of RUSTC_PARALLEL_COMPILER to compile.rs

    No longer needs to live in `rustc.rs`
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    a816fa1 View commit details
    Browse the repository at this point in the history
  20. Move --cfg bootstrap out of rustc.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.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    b3f95f4 View commit details
    Browse the repository at this point in the history
  21. Move handling of -Cprefer-dynamic into builder.rs

    This logic is *super* old and can be tweaked and moved into `builder.rs`
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    385470b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    1607871 View commit details
    Browse the repository at this point in the history
  23. Stylistic changes

    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    9b34ef6 View commit details
    Browse the repository at this point in the history
  24. Fix compiling libserialize tests

    They've got new warnings turned on so they need more `#![allow]`
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    7b907de View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    7342325 View commit details
    Browse the repository at this point in the history
  26. No need to remove target-specific RUSTFLAGS

    Turns out Cargo favors RUSTFLAGS!
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    ff6a7c7 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    d8253c1 View commit details
    Browse the repository at this point in the history
  28. rustbuild: Pass -Zsave-analysis during tests

    This 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.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    008ed18 View commit details
    Browse the repository at this point in the history
  29. Remove --enable-extended from cross dist builder

    Shouldn't have an effect on produced artifacts and otherwise is causing
    issues where `-Zsave-analysis` is passed during tests but fails
    compilation.
    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    b923306 View commit details
    Browse the repository at this point in the history
  30. Fix rebase conflicts

    alexcrichton committed Sep 23, 2019
    Configuration menu
    Copy the full SHA
    1a8897f View commit details
    Browse the repository at this point in the history