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.
16 lines
606 B
Makefile
16 lines
606 B
Makefile
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
# The rust crate foo will link to the native library foo, while the rust crate
|
|
# bar will link to the native library bar. There is also a dependency between
|
|
# the native library bar to the natibe library foo.
|
|
#
|
|
# This test ensures that the ordering of -lfoo and -lbar on the command line is
|
|
# correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo'
|
|
# library will be stripped out, and the linkage will fail.
|
|
|
|
all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
|
|
$(RUSTC) foo.rs
|
|
$(RUSTC) bar.rs
|
|
$(RUSTC) main.rs --print link-args
|