fork/rust

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

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

master
679 B16 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# Test that rustc will not attempt to link against a cdylib as if
5# it is a rust dylib when an rlib for the same crate is available.
6# Previously rustc didn't actually check if any further formats of
7# a crate which has been loaded are of the same version and if
8# they are actually valid. This caused a cdylib to be interpreted
9# as rust dylib as soon as the corresponding rlib was loaded. As
10# cdylibs don't export any rust symbols, linking would fail if
11# rustc decides to link against the cdylib rather than the rlib.
12
13all:
14	$(RUSTC) bar.rs --crate-type=rlib --crate-type=cdylib
15	$(RUSTC) foo.rs -C prefer-dynamic
16	$(call RUN,foo)