Skip to content

Commit 1d594c4

Browse files
committed
do not run the test for targets that it was not checked against.
however, make sure run-make test actually runs, too. (The `# only-target` thing does not work, at least not for cross-compilation. See issue 67018.))
1 parent e3aac4a commit 1d594c4

File tree

1 file changed

+9
-0
lines changed
  • src/test/run-make/removing-code-and-incremental-lto

1 file changed

+9
-0
lines changed

src/test/run-make/removing-code-and-incremental-lto/Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make
66

77
# The original target of interest was thumbv7em-none-eabi
8+
#
9+
# It is possible that other targets could be tested, but as long as we are
10+
# testing *something*, that is enough for me. (Note that you should not just add
11+
# `# only-target` lines; see rust-lang/rust#67018.)
12+
ifeq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv7m-none-eabi))
13+
14+
all:
15+
16+
else
817

918
# This is a test of a scenario that arose in issue rust-lang/rust#59535.
1019
#

0 commit comments

Comments
 (0)