summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-22131/Makefile
blob: 4f33a4659cc1ea98bca11a590c3e3b657313667f (plain)
1
2
3
4
5
6
7
8
# ignore-cross-compile
include ../tools.mk

all: foo.rs
	$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
	$(RUSTDOC) --test --cfg 'feature="bar"' \
		-L $(TMPDIR) foo.rs |\
		$(CGREP) 'foo.rs - foo (line 1) ... ok'