]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/dep-info/Makefile
debuginfo: Make debuginfo source location assignment more stable (Pt. 1)
[rust.git] / src / test / run-make / dep-info / Makefile
1 -include ../tools.mk
2
3 # FIXME: ignore freebsd/windows
4 # on windows `rustc --dep-info` produces Makefile dependency with
5 # windows native paths (e.g. `c:\path\to\libfoo.a`)
6 # but msys make seems to fail to recognize such paths, so test fails.
7 ifneq ($(shell uname),FreeBSD)
8 ifndef IS_WINDOWS
9 all:
10         $(RUSTC) --dep-info --crate-type=lib lib.rs
11         sleep 2
12         touch foo.rs
13         -rm -f $(TMPDIR)/done
14         $(MAKE) -drf Makefile.foo
15         sleep 2
16         rm $(TMPDIR)/done
17         pwd
18         $(MAKE) -drf Makefile.foo
19         rm $(TMPDIR)/done && exit 1 || exit 0
20 else
21 all:
22
23 endif
24
25 else
26 all:
27
28 endif