Skip to content

Commit 927cd05

Browse files
vchuravyKristofferC
authored andcommitted
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 (cherry picked from commit d8fa3c8)
1 parent 03bbc23 commit 927cd05

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
@@ -38,6 +38,9 @@
3838
LLVMExtra*;
3939
repl_entrypoint;
4040

41+
/* Make visible so that linker will merge duplicate definitions across DSO boundaries */
42+
_ZN4llvm3Any6TypeId*;
43+
4144
/* freebsd */
4245
environ;
4346
__progname;

0 commit comments

Comments
 (0)