]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/a-b-a-linker-guard/Makefile
Rollup merge of #96763 - Abdur-rahmaanJ:patch-1, r=Mark-Simulacrum
[rust.git] / tests / run-make-fulldeps / a-b-a-linker-guard / Makefile
1 include ../tools.mk
2
3 # Test that if we build `b` against a version of `a` that has one set
4 # of types, it will not run with a dylib that has a different set of
5 # types.
6
7 # NOTE(eddyb) this test only works with the `legacy` mangling,
8 # and will probably get removed once `legacy` is gone.
9
10 all:
11         $(RUSTC) a.rs --cfg x -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
12         $(RUSTC) b.rs -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
13         $(call RUN,b)
14         $(RUSTC) a.rs --cfg y -C prefer-dynamic -Z unstable-options -C symbol-mangling-version=legacy
15         $(call FAIL,b)