-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
f9a4849
commit 117984b
Showing
16 changed files
with
276 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
LIB := $(shell $(RUSTC) --crate-file-name --crate-type=lib lib.rs) | ||
LIB := $(shell $(RUSTC) --print file-names --crate-type=lib lib.rs) | ||
|
||
$(TMPDIR)/$(LIB): | ||
$(RUSTC) --dep-info --crate-type=lib lib.rs | ||
$(RUSTC) --emit dep-info,link --crate-type=lib lib.rs | ||
touch $(TMPDIR)/done | ||
|
||
-include $(TMPDIR)/foo.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
-include ../tools.mk | ||
|
||
all: | ||
$(RUSTC) -v | ||
$(RUSTC) -v verbose | ||
$(RUSTC) -v bad_arg && exit 1 || exit 0 | ||
$(RUSTC) --version verbose | ||
$(RUSTC) --version bad_arg && exit 1 || exit 0 | ||
$(RUSTC) -V | ||
$(RUSTC) -vV | ||
$(RUSTC) --version --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from cmr
at alexcrichton@117984b
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging alexcrichton/rust/compiler-flags = 117984b into auto
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: {"merge_sha": "1225ea6c3015ca45cc376143d045b5874c29cb58"}
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alexcrichton/rust/compiler-flags = 117984b merged ok, testing candidate = 1225ea6c
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2763
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2758
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2759
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2750
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2749
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2753
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2745
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2745
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2411
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2408
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1250
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1243
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from cmr
at alexcrichton@117984b
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging alexcrichton/rust/compiler-flags = 117984b into auto
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: {"merge_sha": "f8f2c7a9537c7f333b242f616aefb75a83860927"}
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alexcrichton/rust/compiler-flags = 117984b merged ok, testing candidate = f8f2c7a
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2774
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2769
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2770
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2761
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2760
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2764
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2756
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2756
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2422
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2419
success: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1261
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1254
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = f8f2c7a
117984b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = f8f2c7a