|
1 | 1 | -include ../tools.mk |
2 | 2 | all: |
3 | 3 | $(RUSTC) reproducible-build-aux.rs |
| 4 | + mv libreproducible_build_aux.rlib first.rlib |
| 5 | + $(RUSTC) reproducible-build-aux.rs |
| 6 | + cp libreproducible_build_aux.rlib second.rlib |
| 7 | + cmp "first.rlib" "second.rlib" || exit 1 |
4 | 8 | $(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build1" |
5 | 9 | $(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 |
| 10 | + cmp "$(TMPDIR)/reproducible-build1" "$(TMPDIR)/reproducible-build2" || exit 1 |
| 11 | + $(RUSTC) reproducible-build-aux.rs -g |
| 12 | + mv libreproducible_build_aux.rlib first.rlib |
9 | 13 | $(RUSTC) reproducible-build-aux.rs -g |
| 14 | + cp libreproducible_build_aux.rlib second.rlib |
10 | 15 | $(RUSTC) reproducible-build.rs -g -o"$(TMPDIR)/reproducible-build1-debug" |
11 | 16 | $(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 |
| 17 | + cmp "$(TMPDIR)/reproducible-build1-debug" "$(TMPDIR)/reproducible-build2-debug" || exit 1 |
| 18 | + $(RUSTC) reproducible-build-aux.rs -O |
| 19 | + mv libreproducible_build_aux.rlib first.rlib |
15 | 20 | $(RUSTC) reproducible-build-aux.rs -O |
| 21 | + cp libreproducible_build_aux.rlib second.rlib |
16 | 22 | $(RUSTC) reproducible-build.rs -O -o"$(TMPDIR)/reproducible-build1-opt" |
17 | 23 | $(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 |
| 24 | + cmp "$(TMPDIR)/reproducible-build1-opt" "$(TMPDIR)/reproducible-build2-opt" || exit 1 |
0 commit comments