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