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

Add split-debuginfo profile option #9112

Merged
merged 3 commits into from
Feb 3, 2021

Commits on Feb 1, 2021

  1. Add split-debuginfo profile option

    This commit adds a new `split-debuginfo` option to Cargo compilation
    profiles which gets forwarded to the `-Csplit-debuginfo` codegen option
    in rustc. This commit also sets the default, only on macOS, to be
    `-Csplit-debuginfo=unpacked`. The purpose of this change is to leverage
    rust-lang/rust#79570 to avoid running `dsymutil` on incremental builds
    while also preserving a pleasant debugging experience by default. This
    should lead to much faster incremental build times on macOS since
    `dsymutil` isn't exactly the speediest tool in the world.
    
    This is technically a breaking change in Cargo because we're no longer
    by-default producing the `*.dSYM` folders on macOS. If those are still
    desired, however, authors can always run `dsymutil` themselves or
    otherwise configure `split-debuginfo = 'packed'` in their
    manifest/profile configuration.
    alexcrichton committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    ed4568e View commit details
    Browse the repository at this point in the history
  2. Cache failures in the rustc info cache

    This commit updates the rustc info cache to cache failures to execute
    rustc as well as successes. This fixes a weird issue where if you're
    probing for flags the `rustc_info_cache` test fails on channels which
    don't have the flag since previously a failure to execute rustc resulted
    in never caching the result.
    alexcrichton committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    cc5e9df View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2021

  1. Configuration menu
    Copy the full SHA
    ffa9dbd View commit details
    Browse the repository at this point in the history