forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit removes a number of deprecated flags from the compiler: * opt-level => -C opt-level * debuginfo => -C debuginfo * print-crate-name => --print crate-name * print-file-name => --print file-names * no-trans => -Z no-trans * no-analysis => -Z no-analysis * parse-only => -Z parse-only * dep-info => --emit dep-info This commit also moves the --pretty flag behind `-Z unstable-options` as the pretty printer will likely not be stable for 1.0 cc rust-lang#19051
- Loading branch information
1 parent
ffd8cb7
commit 953f294
Showing
22 changed files
with
43 additions
and
193 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
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,10 +1,10 @@ | ||
-include ../tools.mk | ||
|
||
all: | ||
[ `$(RUSTC) --print-crate-name crate.rs` = "foo" ] | ||
[ `$(RUSTC) --print-file-name crate.rs` = "$(call BIN,foo)" ] | ||
[ `$(RUSTC) --print-file-name --crate-type=lib \ | ||
[ `$(RUSTC) --print crate-name crate.rs` = "foo" ] | ||
[ `$(RUSTC) --print file-names crate.rs` = "$(call BIN,foo)" ] | ||
[ `$(RUSTC) --print file-names --crate-type=lib \ | ||
--test crate.rs` = "$(call BIN,foo)" ] | ||
[ `$(RUSTC) --print-file-name --test lib.rs` = "$(call BIN,mylib)" ] | ||
$(RUSTC) --print-file-name lib.rs | ||
$(RUSTC) --print-file-name rlib.rs | ||
[ `$(RUSTC) --print file-names --test lib.rs` = "$(call BIN,mylib)" ] | ||
$(RUSTC) --print file-names lib.rs | ||
$(RUSTC) --print file-names rlib.rs |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
LIB := $(shell $(RUSTC) --print-file-name --crate-type=lib lib.rs) | ||
LIB := $(shell $(RUSTC) --print file-names --crate-type=lib lib.rs) | ||
|
||
$(TMPDIR)/$(LIB): | ||
$(RUSTC) --dep-info $(TMPDIR)/custom-deps-file.d --crate-type=lib lib.rs | ||
$(RUSTC) --emit link,dep-info --crate-type=lib lib.rs | ||
touch $(TMPDIR)/done | ||
|
||
-include $(TMPDIR)/custom-deps-file.d | ||
-include $(TMPDIR)/lib.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
-include ../tools.mk | ||
|
||
all: | ||
$(RUSTC) -o $(TMPDIR)/input.expanded.rs --pretty=expanded input.rs | ||
$(RUSTC) -o $(TMPDIR)/input.expanded.rs -Z unstable-options \ | ||
--pretty=expanded input.rs |
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,9 +1,9 @@ | ||
-include ../tools.mk | ||
|
||
all: | ||
$(RUSTC) -o $(TMPDIR)/foo.out --pretty normal=foo input.rs | ||
$(RUSTC) -o $(TMPDIR)/nest_foo.out --pretty normal=nest::foo input.rs | ||
$(RUSTC) -o $(TMPDIR)/foo_method.out --pretty normal=foo_method input.rs | ||
$(RUSTC) -o $(TMPDIR)/foo.out -Z unstable-options --pretty normal=foo input.rs | ||
$(RUSTC) -o $(TMPDIR)/nest_foo.out -Z unstable-options --pretty normal=nest::foo input.rs | ||
$(RUSTC) -o $(TMPDIR)/foo_method.out -Z unstable-options --pretty normal=foo_method input.rs | ||
diff -u $(TMPDIR)/foo.out foo.pp | ||
diff -u $(TMPDIR)/nest_foo.out nest_foo.pp | ||
diff -u $(TMPDIR)/foo_method.out foo_method.pp |
Oops, something went wrong.