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 Oct 11, 2023
1 parent 03bbc23 commit 927cd05
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 @@ -38,6 +38,9 @@
LLVMExtra*;
repl_entrypoint;

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

/* freebsd */
environ;
__progname;
Expand Down

0 comments on commit 927cd05

Please sign in to comment.