rustc: add a --print target-list command

This commit is contained in:
Jorge Aparicio 2016-02-12 10:11:58 -05:00
parent 77f9231818
commit 0bb4209b88
4 changed files with 101 additions and 78 deletions

View file

@ -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