Precompile statements for sysimage

akazachk/formulations
mtanneau 5 years ago committed by Alinson S Xavier
parent 853e0c7b70
commit 9957894bdc

@ -9,7 +9,9 @@ VERSION := 0.1
build/sysimage.so: src/sysimage.jl Project.toml Manifest.toml
mkdir -p build
$(JULIA) --trace-compile=precompile.jl benchmark/run.jl test/case14.json.gz
$(JULIA) src/sysimage.jl
rm precompile.jl
clean:
rm -rf build/*

@ -18,4 +18,4 @@ pkg = [:DataStructures,
]
@info "Building system image..."
create_sysimage(pkg, sysimage_path="build/sysimage.so")
create_sysimage(pkg, precompile_statements_file=joinpath(@__DIR__, "../precompile.jl"), sysimage_path="build/sysimage.so")

Loading…
Cancel
Save