@@ -10,31 +10,27 @@ all: \
1010
1111smoke :
1212 rm -rf $(TMPDIR ) && mkdir $(TMPDIR )
13+ $(RUSTC ) linker.rs -O
1314 $(RUSTC ) reproducible-build-aux.rs
14- $(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build1"
15- $(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build2"
16- $(B2 )
17- nm " $( TMPDIR) /reproducible-build1" | sort > " $( TMPDIR) /reproducible-build1.nm"
18- nm " $( TMPDIR) /reproducible-build2" | sort > " $( TMPDIR) /reproducible-build2.nm"
19- cmp " $( TMPDIR) /reproducible-build1.nm" " $( TMPDIR) /reproducible-build2.nm" || exit 1
15+ $(RUSTC ) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker)
16+ $(RUSTC ) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker)
17+ diff -u " $( TMPDIR) /linker-arguments1" " $( TMPDIR) /linker-arguments2"
2018
2119debug :
2220 rm -rf $(TMPDIR ) && mkdir $(TMPDIR )
21+ $(RUSTC ) linker.rs -O
2322 $(RUSTC ) reproducible-build-aux.rs -g
24- $(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build1" -g
25- $(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build2" -g
26- nm " $( TMPDIR) /reproducible-build1" | sort > " $( TMPDIR) /reproducible-build1-debug.nm"
27- nm " $( TMPDIR) /reproducible-build2" | sort > " $( TMPDIR) /reproducible-build2-debug.nm"
28- cmp " $( TMPDIR) /reproducible-build1-debug.nm" " $( TMPDIR) /reproducible-build2-debug.nm" || exit 1
23+ $(RUSTC ) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -g
24+ $(RUSTC ) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -g
25+ diff -u " $( TMPDIR) /linker-arguments1" " $( TMPDIR) /linker-arguments2"
2926
3027opt :
3128 rm -rf $(TMPDIR ) && mkdir $(TMPDIR )
29+ $(RUSTC ) linker.rs -O
3230 $(RUSTC ) reproducible-build-aux.rs -O
33- $(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build1" -O
34- $(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build2" -O
35- nm " $( TMPDIR) /reproducible-build1" | sort > " $( TMPDIR) /reproducible-build1-opt.nm"
36- nm " $( TMPDIR) /reproducible-build2" | sort > " $( TMPDIR) /reproducible-build2-opt.nm"
37- cmp " $( TMPDIR) /reproducible-build1-opt.nm" " $( TMPDIR) /reproducible-build2-opt.nm" || exit 1
31+ $(RUSTC ) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -O
32+ $(RUSTC ) reproducible-build.rs -C linker=$(call RUN_BINFILE,linker) -O
33+ diff -u " $( TMPDIR) /linker-arguments1" " $( TMPDIR) /linker-arguments2"
3834
3935link_paths :
4036 rm -rf $(TMPDIR ) && mkdir $(TMPDIR )
0 commit comments