-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustc: add a
--print target-list
command
- Loading branch information
Jorge Aparicio
committed
Feb 12, 2016
1 parent
77f9231
commit 0bb4209
Showing
4 changed files
with
101 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-include ../tools.mk | ||
|
||
# Checks that all the targets returned by `rustc --print target-list` are valid | ||
# target specifications | ||
# TODO remove the '*ios*' case when rust-lang/rust#29812 is fixed | ||
all: | ||
for target in $(shell $(BARE_RUSTC) --print target-list); do \ | ||
case $$target in \ | ||
*ios*) \ | ||
;; \ | ||
*) \ | ||
$(BARE_RUSTC) --target $$target --print sysroot \ | ||
;; \ | ||
esac \ | ||
done |