mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
4851d5663c
`run-make-fulldeps` is never cross-compiled, so a lot of these tests never accounted for --target. Ignore them when cross-compiling for now.
28 lines
1.0 KiB
Makefile
28 lines
1.0 KiB
Makefile
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
# ignore-musl
|
|
# ignore-windows
|
|
# Objects are reproducible but their path is not.
|
|
|
|
all: \
|
|
fat_lto \
|
|
sysroot
|
|
|
|
fat_lto:
|
|
rm -rf $(TMPDIR) && mkdir $(TMPDIR)
|
|
$(RUSTC) reproducible-build-aux.rs
|
|
$(RUSTC) reproducible-build.rs -C lto=fat
|
|
cp $(TMPDIR)/reproducible-build $(TMPDIR)/reproducible-build-a
|
|
$(RUSTC) reproducible-build.rs -C lto=fat
|
|
cmp "$(TMPDIR)/reproducible-build-a" "$(TMPDIR)/reproducible-build" || exit 1
|
|
|
|
sysroot:
|
|
rm -rf $(TMPDIR) && mkdir $(TMPDIR)
|
|
$(RUSTC) reproducible-build-aux.rs
|
|
$(RUSTC) reproducible-build.rs --crate-type rlib --sysroot $(shell $(RUSTC) --print sysroot) --remap-path-prefix=$(shell $(RUSTC) --print sysroot)=/sysroot
|
|
cp -R $(shell $(RUSTC) --print sysroot) $(TMPDIR)/sysroot
|
|
cp $(TMPDIR)/libreproducible_build.rlib $(TMPDIR)/libfoo.rlib
|
|
$(RUSTC) reproducible-build.rs --crate-type rlib --sysroot $(TMPDIR)/sysroot --remap-path-prefix=$(TMPDIR)/sysroot=/sysroot
|
|
cmp "$(TMPDIR)/libreproducible_build.rlib" "$(TMPDIR)/libfoo.rlib" || exit 1
|