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

rustc: Add -C lto=val option #47521

Merged
merged 1 commit into from
Jan 26, 2018
Merged

Commits on Jan 23, 2018

  1. rustc: Add -C lto=val option

    This commit primarily adds the ability to control what kind of LTO happens when
    rustc performs LTO, namely allowing values to be specified to the `-C lto`
    option, such as `-C lto=thin` and `-C lto=fat`. (where "fat" is the previous
    kind of LTO, throw everything in one giant module)
    
    Along the way this also refactors a number of fields which store information
    about whether LTO/ThinLTO are enabled to unify them all into one field through
    which everything is dispatched, hopefully removing a number of special cases
    throughout.
    
    This is intended to help mitigate rust-lang#47409 but will require a backport as well,
    and this would unfortunately need to be an otherwise insta-stable option.
    alexcrichton committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    8bde2ac View commit details
    Browse the repository at this point in the history