fork/rust

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

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

master
625 B16 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# Test that if we build `b` against a version of `a` that has one set
5# of types, it will not run with a dylib that has a different set of
6# types.
7
8# NOTE(eddyb) this test only works with the `legacy` mangling,
9# and will probably get removed once `legacy` is gone.
10
11all:
12	$(RUSTC) a.rs --cfg x -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
13	$(RUSTC) b.rs -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
14	$(call RUN,b)
15	$(RUSTC) a.rs --cfg y -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
16	$(call FAIL,b)