Skip to content
Snippets Groups Projects
Commit bd63181a authored by Marco Matthies's avatar Marco Matthies
Browse files

Call precompile only during package precompilation

parent b3f70307
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,13 @@ include("nature/species/wyvern.jl") ...@@ -117,7 +117,13 @@ include("nature/species/wyvern.jl")
include("core/simulation.jl") #this must be last include("core/simulation.jl") #this must be last
# precompile important functions # precompile important functions
precompile(initialise, (String,Int)) function _precompile()
precompile(stepsimulation!, (AgentBasedModel,)) ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
precompile(initialise, (String,Int))
precompile(stepsimulation!, (AgentBasedModel,))
return
end
_precompile()
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment