You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've written this snippet of code for inclusion in PackageCompiler.jl, but it feels like it should belong somewhere here.
let M =Module() # Prevent this from putting anything into the Main namespace# get a local reference to any module that may be directly referenced in the `precompile.jl` filefor m in Base.loaded_modules_array()
Core.isdefined(M, nameof(m)) || Core.eval(M, Expr(:const, Expr(:(=), nameof(m), m)))
endfor n innames(Main)
if Core.isdefined(Main, n) &&isconst(Main, n)
m =getfield(Main, n)
m isa Module && (Core.isdefined(M, nameof(m)) || Core.eval(M, Expr(:const, Expr(:(=), nameof(m), m))))
endend
Base.include(M, \"precompile.jl\")")
end# let
The text was updated successfully, but these errors were encountered:
vtjnash
changed the title
compatibility code for v0.1
compatibility code for v1.0
Sep 12, 2018
I've written this snippet of code for inclusion in PackageCompiler.jl, but it feels like it should belong somewhere here.
The text was updated successfully, but these errors were encountered: