summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/issues-41478-43796/Makefile
blob: e451cb03126ccc4ff036bf590491bce9c961a76f (plain)
1
2
3
4
5
6
7
8
include ../tools.mk

all:
	# Work in /tmp, because we need to create the `save-analysis-temp` folder.
	cp a.rs $(TMPDIR)/
	cd $(TMPDIR) && $(RUSTC) -Zsave-analysis $(TMPDIR)/a.rs 2> $(TMPDIR)/stderr.txt || ( cat $(TMPDIR)/stderr.txt && exit 1 )
	[ ! -s $(TMPDIR)/stderr.txt ] || ( cat $(TMPDIR)/stderr.txt && exit 1 )
	[ -f $(TMPDIR)/save-analysis/liba.json ] || ( ls -la $(TMPDIR) && exit 1 )