summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/issues-41478-43796/Makefile
blob: f9735253ab6824a86bccfb9a8ba3332cff8d444e (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 )