-
-
Notifications
You must be signed in to change notification settings - Fork 198
Closed
Description
If I pass a file that calls include at the top level, I get an error that include is not defined. For example
a.jl:
include("b.jl")
b.jl:
julia_main() = println("hello")
I believe this is because PackageCompiler evaluates the code in an empty anonymous module. These definitions should be added to the module to make it behave like a normal module (alternatively we could use something like m = module anon end):
eval(x) = Core.eval(@__MODULE__, x)
include(x) = Base.include(@__MODULE__, x)
Metadata
Metadata
Assignees
Labels
No labels