File tree 1 file changed +9
-3
lines changed
src/test/run-make/reproducible-build
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3
3
$(RUSTC ) reproducible-build-aux.rs
4
4
$(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build1"
5
5
$(RUSTC ) reproducible-build.rs -o" $( TMPDIR) /reproducible-build2"
6
- cmp " $( TMPDIR) /reproducible-build1" " $( TMPDIR) /reproducible-build2" || exit 1
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
7
9
$(RUSTC ) reproducible-build-aux.rs -g
8
10
$(RUSTC ) reproducible-build.rs -g -o" $( TMPDIR) /reproducible-build1-debug"
9
11
$(RUSTC ) reproducible-build.rs -g -o" $( TMPDIR) /reproducible-build2-debug"
10
- cmp " $( TMPDIR) /reproducible-build1-debug" " $( TMPDIR) /reproducible-build2-debug" || exit 1
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
11
15
$(RUSTC ) reproducible-build-aux.rs -O
12
16
$(RUSTC ) reproducible-build.rs -O -o" $( TMPDIR) /reproducible-build1-opt"
13
17
$(RUSTC ) reproducible-build.rs -O -o" $( TMPDIR) /reproducible-build2-opt"
14
- 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
You can’t perform that action at this time.
0 commit comments