Skip to content

Commit

Permalink
Mark llvm::Any::TypeId as global in julia.expmap (#49124)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
vchuravy authored and KristofferC committed Mar 30, 2023
1 parent d187689 commit dd44b58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/julia.expmap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
LLVMExtra*;
llvmGetPassPluginInfo;

/* Make visible so that linker will merge duplicate definitions across DSO boundaries */
_ZN4llvm3Any6TypeId*;

/* freebsd */
environ;
__progname;
Expand Down

0 comments on commit dd44b58

Please sign in to comment.