From 9957894bdc892cca07e55600ffde907aa493ddd2 Mon Sep 17 00:00:00 2001 From: mtanneau Date: Wed, 18 Nov 2020 10:14:31 -0500 Subject: [PATCH] Precompile statements for sysimage --- Makefile | 2 ++ src/sysimage.jl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5cf138a..cae5cc0 100644 --- a/Makefile +++ b/Makefile @@ -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/* diff --git a/src/sysimage.jl b/src/sysimage.jl index cb721ad..8eeaedf 100644 --- a/src/sysimage.jl +++ b/src/sysimage.jl @@ -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")