mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
4851d5663c
`run-make-fulldeps` is never cross-compiled, so a lot of these tests never accounted for --target. Ignore them when cross-compiling for now.
19 lines
411 B
Makefile
19 lines
411 B
Makefile
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
all: $(TMPDIR)/$(call BIN,bar)
|
|
$(call RUN,bar)
|
|
$(call REMOVE_DYLIBS,foo)
|
|
$(call FAIL,bar)
|
|
|
|
ifdef IS_MSVC
|
|
$(TMPDIR)/$(call BIN,bar): $(call DYLIB,foo)
|
|
$(CC) bar.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,bar)
|
|
else
|
|
$(TMPDIR)/$(call BIN,bar): $(call DYLIB,foo)
|
|
$(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) -L $(TMPDIR)
|
|
endif
|
|
|
|
$(call DYLIB,foo): foo.rs
|
|
$(RUSTC) foo.rs
|