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

feat: implement RFC 3127 -Ztrim-paths #12625

Merged
merged 8 commits into from
Oct 31, 2023
Merged

Commits on Oct 29, 2023

  1. Configuration menu
    Copy the full SHA
    decd020 View commit details
    Browse the repository at this point in the history
  2. feat(trim-paths): add unstable feature gate

    This implements RFC-3127[^1] on Cargo side.
    
    [^1]: https://rust-lang.github.io/rfcs/3127-trim-paths.html
    weihanglo committed Oct 29, 2023
    Configuration menu
    Copy the full SHA
    28b169b View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Configuration menu
    Copy the full SHA
    4d29af1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    08c5e35 View commit details
    Browse the repository at this point in the history
  3. feat(rustc): parse and store commit-hash

    The rustc commit hash is required as we'll need it to remap sysroot path
    to `/rustc/<commit-hash>`, as rustc bootstrap does.
    See <https://github.com/rust-lang/rust/blob/c2ef3516/src/bootstrap/src/lib.rs#L1113-L1116>.
    
    This is optional as the compiler it may be built without a Git repository.
    weihanglo committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    f4a1a03 View commit details
    Browse the repository at this point in the history
  4. feat(trim-paths): default value for release profile

    trim-paths is shown as disabled as default in `Debug` impl.
    Although this doesn't reflect the correct default for `-Ztrim-pthas`,
    this is no critical as it is only for debugging,
    and it's a bit tricky to make it more correct.
    weihanglo committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    fd893b2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    557fc4f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    63cef2c View commit details
    Browse the repository at this point in the history