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_target: Further cleanup use of target options #78875

Merged
merged 3 commits into from
Nov 11, 2020

Commits on Nov 8, 2020

  1. Collapse all uses of target.options.foo into target.foo

    with an eye on merging `TargetOptions` into `Target`.
    
    `TargetOptions` as a separate structure is mostly an implementation detail of `Target` construction, all its fields logically belong to `Target` and available from `Target` through `Deref` impls.
    petrochenkov committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    bf66988 View commit details
    Browse the repository at this point in the history
  2. rustc_target: Rename some target options to avoid tautology

    `target.target_endian` -> `target.endian`
    `target.target_c_int_width` -> `target.c_int_width`
    `target.target_os` -> `target.os`
    `target.target_env` -> `target.env`
    `target.target_vendor` -> `target.vendor`
    `target.target_family` -> `target.os_family`
    `target.target_mcount` -> `target.mcount`
    petrochenkov committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    dc004d4 View commit details
    Browse the repository at this point in the history
  3. Address review comments

    petrochenkov committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    7f91175 View commit details
    Browse the repository at this point in the history