]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/c-link-to-rust-dylib/Makefile
Rollup merge of #100843 - IntQuant:issue-100717-infer, r=compiler-errors
[rust.git] / src / test / run-make-fulldeps / c-link-to-rust-dylib / Makefile
1 include ../tools.mk
2
3 all: $(TMPDIR)/$(call BIN,bar)
4         $(call RUN,bar)
5         $(call REMOVE_DYLIBS,foo)
6         $(call FAIL,bar)
7
8 ifdef IS_MSVC
9 $(TMPDIR)/$(call BIN,bar): $(call DYLIB,foo)
10         $(CC) bar.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,bar)
11 else
12 $(TMPDIR)/$(call BIN,bar): $(call DYLIB,foo)
13         $(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) -L $(TMPDIR)
14 endif
15
16 $(call DYLIB,foo): foo.rs
17         $(RUSTC) foo.rs