]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/reproducible-build/Makefile
8e799ca1a430305f784326bbf454088f8f0540d8
[rust.git] / src / test / run-make / reproducible-build / Makefile
1 -include ../tools.mk
2 all:
3         $(RUSTC) reproducible-build-aux.rs
4         $(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build1"
5         $(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build2"
6         nm "$(TMPDIR)/reproducible-build1" | sort > "$(TMPDIR)/reproducible-build1.nm"
7         nm "$(TMPDIR)/reproducible-build2" | sort > "$(TMPDIR)/reproducible-build2.nm"
8         cmp "$(TMPDIR)/reproducible-build1.nm" "$(TMPDIR)/reproducible-build2.nm" || exit 1
9         $(RUSTC) reproducible-build-aux.rs -g
10         $(RUSTC) reproducible-build.rs -g -o"$(TMPDIR)/reproducible-build1-debug"
11         $(RUSTC) reproducible-build.rs -g -o"$(TMPDIR)/reproducible-build2-debug"
12         nm "$(TMPDIR)/reproducible-build1-debug" | sort > "$(TMPDIR)/reproducible-build1-debug.nm"
13         nm "$(TMPDIR)/reproducible-build2-debug" | sort > "$(TMPDIR)/reproducible-build2-debug.nm"
14         cmp "$(TMPDIR)/reproducible-build1-debug.nm" "$(TMPDIR)/reproducible-build2-debug.nm" || exit 1
15         $(RUSTC) reproducible-build-aux.rs -O
16         $(RUSTC) reproducible-build.rs -O -o"$(TMPDIR)/reproducible-build1-opt"
17         $(RUSTC) reproducible-build.rs -O -o"$(TMPDIR)/reproducible-build2-opt"
18         nm "$(TMPDIR)/reproducible-build1-opt" | sort > "$(TMPDIR)/reproducible-build1-opt.nm"
19         nm "$(TMPDIR)/reproducible-build2-opt" | sort > "$(TMPDIR)/reproducible-build2-opt.nm"
20         cmp "$(TMPDIR)/reproducible-build1-opt.nm" "$(TMPDIR)/reproducible-build2-opt.nm" || exit 1