fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
669 B25 linesraw
1-include ../tools.mk
2
3# ignore-windows
4# ignore-freebsd
5# FIXME: on windows `rustc --dep-info` produces Makefile dependency with
6# windows native paths (e.g. `c:\path\to\libfoo.a`)
7# but msys make seems to fail to recognize such paths, so test fails.
8
9all:
10	cp *.rs $(TMPDIR)
11	$(RUSTC) --emit dep-info,link --crate-type=lib $(TMPDIR)/lib.rs
12	sleep 2
13	touch $(TMPDIR)/foo.rs
14	-rm -f $(TMPDIR)/done
15	$(MAKE) -drf Makefile.foo
16	sleep 2
17	rm $(TMPDIR)/done
18	pwd
19	$(MAKE) -drf Makefile.foo
20	rm $(TMPDIR)/done && exit 1 || exit 0
21
22	# When a source file is deleted `make` should still work
23	rm $(TMPDIR)/bar.rs
24	cp $(TMPDIR)/lib2.rs $(TMPDIR)/lib.rs
25	$(MAKE) -drf Makefile.foo