mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
610 B
Makefile
17 lines
610 B
Makefile
# When two object archives with the same filename are present, an iterator is supposed to inspect each object, recognize the duplication and extract each one to a different directory.
|
|
# This test checks that this duplicate handling behaviour has not been broken.
|
|
# See https://github.com/rust-lang/rust/pull/24439
|
|
|
|
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
all:
|
|
mkdir $(TMPDIR)/a
|
|
mkdir $(TMPDIR)/b
|
|
$(call COMPILE_OBJ,$(TMPDIR)/a/foo.o,foo.c)
|
|
$(call COMPILE_OBJ,$(TMPDIR)/b/foo.o,bar.c)
|
|
$(AR) crus $(TMPDIR)/libfoo.a $(TMPDIR)/a/foo.o $(TMPDIR)/b/foo.o
|
|
$(RUSTC) foo.rs
|
|
$(RUSTC) bar.rs
|
|
$(call RUN,bar)
|