From ab1eec566d023d59f18b3ad2de136188edf539c1 Mon Sep 17 00:00:00 2001 From: Benjamin Lorenz Date: Sat, 28 Oct 2023 21:43:27 +0200 Subject: [PATCH] libjulia: add jl_unwrap_unionall to exported_funcs (#51916) This was recently refactored in #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`. --- src/jl_exported_funcs.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jl_exported_funcs.inc b/src/jl_exported_funcs.inc index f8a756ad216f7..6ae91f5cc32d6 100644 --- a/src/jl_exported_funcs.inc +++ b/src/jl_exported_funcs.inc @@ -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) \