rustc: add a --print target-list command
This commit is contained in:
parent
77f9231818
commit
0bb4209b88
4 changed files with 101 additions and 78 deletions
15
src/test/run-make/print-target-list/Makefile
Normal file
15
src/test/run-make/print-target-list/Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue