Changing cdylib to staticlib, as the former doesn't work with arm-none-eabi-gcc.

This commit is contained in:
Tor Hovland 2021-11-10 08:25:35 +01:00
parent 13dbdc6ad3
commit 1793a7acc7

View file

@ -3,11 +3,8 @@
# Regression test for issue #10971
# Running two invocations in parallel would overwrite each other's temp files.
## clean up unused env variables which might cause harm.
unexport RUSTC_LINKER
all:
touch $(TMPDIR)/lib.rs
$(RUSTC) --crate-type=lib -Z temps-dir=$(TMPDIR)/temp1 $(TMPDIR)/lib.rs & \
$(RUSTC) --crate-type=cdylib -Z temps-dir=$(TMPDIR)/temp2 $(TMPDIR)/lib.rs
$(RUSTC) --crate-type=staticlib -Z temps-dir=$(TMPDIR)/temp2 $(TMPDIR)/lib.rs