fork/rust

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

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

master
453 B20 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4all: $(call RUN_BINFILE,foo)
5	$(call RUN,foo)
6	rm $(call DYLIB,foo)
7	$(RUSTC) foo.rs -C lto
8	$(call RUN,foo)
9
10ifdef IS_MSVC
11$(call RUN_BINFILE,foo): $(call DYLIB,foo)
12	$(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,foo)
13else
14$(call RUN_BINFILE,foo): $(call DYLIB,foo)
15	$(CC) $(CFLAGS) foo.c -lfoo -o $(call RUN_BINFILE,foo) -L $(TMPDIR)
16endif
17
18$(call DYLIB,foo):
19	$(RUSTC) bar.rs
20	$(RUSTC) foo.rs