Skip to content

Commit 0aed692

Browse files
committed
Fix public and export
As of JuliaLang/julia#57765, `jl_module_public` is no longer exported. Change our runtime to handle it like `public` and `export` like we handle `import` or `using` for now
1 parent bac1331 commit 0aed692

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/runtime.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ function module_import(into_mod::Module, is_using::Bool,
209209
end
210210

211211
function module_public(mod::Module, is_exported::Bool, identifiers...)
212-
for ident in identifiers
213-
@ccall jl_module_public(mod::Module, Symbol(ident)::Symbol, is_exported::Cint)::Cvoid
214-
end
212+
# symbol jl_module_public is no longer exported as of #57765
213+
eval(mod, Expr((is_exported ? :export : :public), map(Symbol, identifiers)...))
215214
end
216215

217216
#--------------------------------------------------

0 commit comments

Comments
 (0)