Skip to content

Commit e331507

Browse files
committed
test: force legacy mangling for run-make-fulldeps/a-b-a-linker-guard.
1 parent 5fd3e89 commit e331507

File tree

1 file changed

+6
-3
lines changed
  • src/test/run-make-fulldeps/a-b-a-linker-guard

1 file changed

+6
-3
lines changed

src/test/run-make-fulldeps/a-b-a-linker-guard/Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
# of types, it will not run with a dylib that has a different set of
55
# types.
66

7+
# NOTE(eddyb) this test only works with the `legacy` mangling,
8+
# and will probably get removed once `legacy` is gone.
9+
710
all:
8-
$(RUSTC) a.rs --cfg x -C prefer-dynamic
9-
$(RUSTC) b.rs -C prefer-dynamic
11+
$(RUSTC) a.rs --cfg x -C prefer-dynamic -Z symbol-mangling-version=legacy
12+
$(RUSTC) b.rs -C prefer-dynamic -Z symbol-mangling-version=legacy
1013
$(call RUN,b)
11-
$(RUSTC) a.rs --cfg y -C prefer-dynamic
14+
$(RUSTC) a.rs --cfg y -C prefer-dynamic -Z symbol-mangling-version=legacy
1215
$(call FAIL,b)

0 commit comments

Comments
 (0)