]> git.lizzy.rs Git - rust.git/commit
rustc: Start "stabilizing" some flags
authorAlex Crichton <alex@alexcrichton.com>
Tue, 16 Dec 2014 00:03:39 +0000 (16:03 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 19 Dec 2014 19:38:24 +0000 (11:38 -0800)
commit117984b8847eca21a7f2b2d120f85eff9f2d16f9
tree11a7e7ec0e95dbb3ec8bd333cc512c2214c06d97
parentf9a48492a82f805aa40d8b6fea290badbab0d1b1
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.
16 files changed:
src/compiletest/runtest.rs
src/etc/rust-lldb
src/librustc/session/config.rs
src/librustc_driver/lib.rs
src/librustc_trans/back/write.rs
src/librustdoc/lib.rs
src/test/run-make/dep-info-custom/Makefile.foo
src/test/run-make/dep-info/Makefile.foo
src/test/run-make/issue-7349/Makefile
src/test/run-make/libs-through-symlinks/Makefile
src/test/run-make/output-type-permutations/Makefile
src/test/run-make/sepcomp-cci-copies/Makefile
src/test/run-make/sepcomp-inlining/Makefile
src/test/run-make/sepcomp-separate/Makefile
src/test/run-make/version/Makefile
src/test/run-make/volatile-intrinsics/Makefile