mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +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.
21 lines
453 B
Makefile
21 lines
453 B
Makefile
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
all: $(call RUN_BINFILE,foo)
|
|
$(call RUN,foo)
|
|
rm $(call DYLIB,foo)
|
|
$(RUSTC) foo.rs -C lto
|
|
$(call RUN,foo)
|
|
|
|
ifdef IS_MSVC
|
|
$(call RUN_BINFILE,foo): $(call DYLIB,foo)
|
|
$(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,foo)
|
|
else
|
|
$(call RUN_BINFILE,foo): $(call DYLIB,foo)
|
|
$(CC) $(CFLAGS) foo.c -lfoo -o $(call RUN_BINFILE,foo) -L $(TMPDIR)
|
|
endif
|
|
|
|
$(call DYLIB,foo):
|
|
$(RUSTC) bar.rs
|
|
$(RUSTC) foo.rs
|