]> git.proxmox.com Git - rustc.git/blob - tests/run-make-fulldeps/reproducible-build-2/Makefile
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / run-make-fulldeps / reproducible-build-2 / Makefile
1 include ../tools.mk
2
3 # ignore-musl
4 # ignore-windows
5 # Objects are reproducible but their path is not.
6
7 all: \
8 fat_lto \
9 sysroot
10
11 fat_lto:
12 rm -rf $(TMPDIR) && mkdir $(TMPDIR)
13 $(RUSTC) reproducible-build-aux.rs
14 $(RUSTC) reproducible-build.rs -C lto=fat
15 cp $(TMPDIR)/reproducible-build $(TMPDIR)/reproducible-build-a
16 $(RUSTC) reproducible-build.rs -C lto=fat
17 cmp "$(TMPDIR)/reproducible-build-a" "$(TMPDIR)/reproducible-build" || exit 1
18
19 sysroot:
20 rm -rf $(TMPDIR) && mkdir $(TMPDIR)
21 $(RUSTC) reproducible-build-aux.rs
22 $(RUSTC) reproducible-build.rs --crate-type rlib --sysroot $(shell $(RUSTC) --print sysroot) --remap-path-prefix=$(shell $(RUSTC) --print sysroot)=/sysroot
23 cp -R $(shell $(RUSTC) --print sysroot) $(TMPDIR)/sysroot
24 cp $(TMPDIR)/libreproducible_build.rlib $(TMPDIR)/libfoo.rlib
25 $(RUSTC) reproducible-build.rs --crate-type rlib --sysroot $(TMPDIR)/sysroot --remap-path-prefix=$(TMPDIR)/sysroot=/sysroot
26 cmp "$(TMPDIR)/libreproducible_build.rlib" "$(TMPDIR)/libfoo.rlib" || exit 1