Skip to content

Commit

Permalink
libjulia: add jl_unwrap_unionall to exported_funcs (JuliaLang#51916)
Browse files Browse the repository at this point in the history
This was recently refactored in JuliaLang#51319 and while trying to adapt
`libcxxwrap-julia` to the new changes I got:
```
ld: CMakeFiles/test_module.dir/test_module.cpp.o: in function `jl_datatype_layout':
test_module.cpp:(.text+0x2c2): undefined reference to `jl_unwrap_unionall'
```

The function `jl_datatype_layout` is `STATIC_INLINE` in `julia.h`:

https://github.com/JuliaLang/julia/blob/98542d748540e2390d6222282749c7dd534544da/src/julia.h#L1304-L1312
`jl_unwrap_unionall` is marked `JL_DLLEXPORT` here but it doesn't appear
in the exports of `libjulia`.
  • Loading branch information
benlorenz committed Oct 28, 2023
1 parent ba98467 commit ab1eec5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jl_exported_funcs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@
XX(jl_uncompress_argname_n) \
XX(jl_uncompress_ir) \
XX(jl_undefined_var_error) \
XX(jl_unwrap_unionall) \
XX(jl_has_no_field_error) \
XX(jl_value_ptr) \
XX(jl_ver_is_release) \
Expand Down

0 comments on commit ab1eec5

Please sign in to comment.