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

Only call precompile during package precompilation

parent 04b3efec
Branches
No related tags found
No related merge requests found
...@@ -149,8 +149,12 @@ include("nature/species/wyvern.jl") ...@@ -149,8 +149,12 @@ include("nature/species/wyvern.jl")
include("core/simulation.jl") #this must be last include("core/simulation.jl") #this must be last
# precompile important functions - TODO use PrecompileTools.jl function _precompile()
precompile(initialise, (String,Int)) precompile(initialise, (String,Int))
precompile(stepsimulation!, (SimulationModel,)) precompile(stepsimulation!, (SimulationModel,))
end
if ccall(:jl_generating_output, Cint, ()) == 1
# only run this during precompilation
_precompile()
end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment