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: Start "stabilizing" some flags #19900

Merged
merged 1 commit into from
Dec 20, 2014

Commits on Dec 19, 2014

  1. rustc: Start "stabilizing" some flags

    This commit shuffles around some CLI flags of the compiler to some more stable
    locations with some renamings. The changes made were:
    
    * The `-v` flag has been repurposes as the "verbose" flag. The version flag has
      been renamed to `-V`.
    * The `-h` screen has been split into two parts. Most top-level options (not
      all) show with `-h`, and the remaining options (generally obscure) can be
      shown with `--help -v` which is a "verbose help screen"
    * The `-V` flag (version flag now) has lost its argument as it is now requested
      with `rustc -vV` "verbose version".
    * The `--emit` option has had its `ir` and `bc` variants renamed to `llvm-ir`
      and `llvm-bc` to emphasize that they are LLVM's IR/bytecode.
    * The `--emit` option has grown a new variant, `dep-info`, which subsumes the
      `--dep-info` CLI argument. The `--dep-info` flag is now deprecated.
    * The `--parse-only`, `--no-trans`, and `--no-analysis` flags have
      moved behind the `-Z` family of flags.
    * The `--debuginfo` and `--opt-level` flags were moved behind the top-level `-C`
      flag.
    * The `--print-file-name` and `--print-crate-name` flags were moved behind one
      global `--print` flag which now accepts one of `crate-name`, `file-names`, or
      `sysroot`. This global `--print` flag is intended to serve as a mechanism for
      learning various metadata about the compiler itself.
    
    No warnings are currently enabled to allow tools like Cargo to have time to
    migrate to the new flags before spraying warnings to all users.
    alexcrichton committed Dec 19, 2014
    12 Configuration menu
    Copy the full SHA
    117984b View commit details
    Browse the repository at this point in the history