fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
621 B26 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# Attempt to build this dependency tree:
5#
6#	A.1   A.2
7#	 |\    |
8#	 | \   |
9#        B  \  C
10#         \ | /
11#          \|/
12#           D
13#
14# Note that A.1 and A.2 are crates with the same name.
15
16all:
17	$(RUSTC) -C metadata=1 -C extra-filename=-1 a.rs
18	$(RUSTC) -C metadata=2 -C extra-filename=-2 a.rs
19	$(RUSTC) b.rs --extern a=$(TMPDIR)/liba-1.rlib
20	$(RUSTC) c.rs --extern a=$(TMPDIR)/liba-2.rlib
21	@echo before
22	$(RUSTC) --cfg before d.rs --extern a=$(TMPDIR)/liba-1.rlib
23	$(call RUN,d)
24	@echo after
25	$(RUSTC) --cfg after  d.rs --extern a=$(TMPDIR)/liba-1.rlib
26	$(call RUN,d)