Closed asinghvi17 closed 4 years ago
Here's the code in PackageCompiler: https://github.com/JuliaLang/PackageCompiler.jl/blob/fa1f43a56ef7f448a4c9af57dedb37174eaa36f8/src/snooping.jl#L56-L73
Dangit, I keep pressing the wrong button :P
It seems like this is caused by PackageCompiler essentially redoing the entire process for each package?
https://github.com/JuliaLang/PackageCompiler.jl/blob/54c0c1255227c8a94de402b41e05d22ea98b5013/src/snooping.jl#L46-L54 is executed for each package. Perhaps we could set a keyword argument to have the function not do that, letting the calling function handle it?
Currently, if compiling multiple packages with overlapping dependencies using
compile_incremental(packages...)
, the packages'__init__
methods will be called twice. The current solution is to edit the precompile file; is it possible to fix this in the code generation stage?Error:
The offending code segments: