fork/rust

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

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

master
606 B15 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# The rust crate foo will link to the native library foo, while the rust crate
5# bar will link to the native library bar. There is also a dependency between
6# the native library bar to the natibe library foo.
7#
8# This test ensures that the ordering of -lfoo and -lbar on the command line is
9# correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo'
10# library will be stripped out, and the linkage will fail.
11
12all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
13	$(RUSTC) foo.rs
14	$(RUSTC) bar.rs
15	$(RUSTC) main.rs --print link-args