diff --git a/tests/run-make/print-target-list/Makefile b/tests/run-make/print-target-list/Makefile index f23c40d4281e3..1a4ab210c542b 100644 --- a/tests/run-make/print-target-list/Makefile +++ b/tests/run-make/print-target-list/Makefile @@ -4,5 +4,5 @@ include ../tools.mk # target specifications all: for target in $(shell $(BARE_RUSTC) --print target-list); do \ - $(BARE_RUSTC) --target $$target --print sysroot; \ + $(BARE_RUSTC) --target $$target --print sysroot || exit 1; \ done