Skip to content

Commit d8fa3c8

Browse files
authored
Mark llvm::Any::TypeId as global in julia.expmap (#49124)
The dynamic linker needs to unify `llvm::Any::TypeId` across DSOs. In our case `libjulia-codegen` and `libLLVM`. See https://github.com/llvm/llvm-project/blob/2bc4c3e920ee078ef2879b00c40440e0867f0b9e/llvm/include/llvm/ADT/Any.h#L30 Fixes: #49121
1 parent 045a392 commit d8fa3c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/julia.expmap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
LLVMExtra*;
3636
llvmGetPassPluginInfo;
3737

38+
/* Make visible so that linker will merge duplicate definitions across DSO boundaries */
39+
_ZN4llvm3Any6TypeId*;
40+
3841
/* freebsd */
3942
environ;
4043
__progname;

0 commit comments

Comments
 (0)