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