From 78bcdf076b8b84d0b0cd6997bfc1ac450d3ff271 Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Tue, 8 Oct 2019 21:05:10 -0400 Subject: [PATCH] Make sysimage path configurable --- src/incremental.jl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/incremental.jl b/src/incremental.jl index d87e29b8..82b9993f 100644 --- a/src/incremental.jl +++ b/src/incremental.jl @@ -115,7 +115,9 @@ end compile_incremental( toml_path::String, snoopfile::String; force = false, precompile_file = nothing, verbose = true, - debug = false, cc_flags = nothing + debug = false, cc_flags = nothing, + systemp = sysimg_folder("sys.a"), + sysout = sysimg_folder("sys.$(Libdl.dlext)") ) Extract all calls from `snoopfile` and ahead of time compiles them @@ -124,15 +126,16 @@ end The argument `toml_path` should contain a project file of the packages that `snoopfile` explicitly uses. Implicitly used packages & modules don't need to be contained! - To compile just a single package, see the simpler version `compile_incremental(package::Symbol)`: + To compile just a single package, see the simpler version `compile_incremental(package::Symbol)`. """ function compile_incremental( toml_path::Union{String, Nothing}, precompiles::String; force = false, verbose = true, - debug = false, cc_flags = nothing + debug = false, cc_flags = nothing, + systemp = sysimg_folder("sys.a"), + sysout = sysimg_folder("sys.$(Libdl.dlext)") ) - systemp = sysimg_folder("sys.a") - sysout = sysimg_folder("sys.$(Libdl.dlext)") + code = PrecompileCommand(precompiles) run_julia( code, O = 3, output_o = systemp, g = 1,