mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
Precompile statements for sysimage
This commit is contained in:
2
Makefile
2
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/*
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user