Precompile statements for sysimage

pull/4/head
mtanneau 5 years ago
parent 332ace7613
commit e462109e22

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

@ -18,4 +18,4 @@ pkg = [:DataStructures,
] ]
@info "Building system image..." @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