From d56c6220e2ffb24ed20cca7b7ce425ac6ab358aa Mon Sep 17 00:00:00 2001 From: Luca Trevisani Date: Sat, 4 Aug 2018 01:10:42 +0200 Subject: [PATCH] Add Julia v0.7 comments --- src/static_julia.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/static_julia.jl b/src/static_julia.jl index 6c4c028f..a62ce19f 100644 --- a/src/static_julia.jl +++ b/src/static_julia.jl @@ -220,6 +220,7 @@ function build_object( ) cache_dir = "cache_ji_v$VERSION" if julia_v07 + # TODO: verify if this initialization is correct for Julia v0.7 expr = " Base.__init__(); Sys.__init__() # initialize \"Base\" and \"Sys\" modules pushfirst!(Base.DEPOT_PATH, \"$cache_dir\") # save precompiled modules locally @@ -232,6 +233,7 @@ function build_object( include(\"$juliaprog\") # include Julia program file empty!(Base.LOAD_CACHE_PATH) # reset / remove build-system-relative paths" end + # TODO: verify if this can be used with Julia v0.7 too (currently it does not seem to work), or how to precompile modules if !julia_v07 && compilecache == "yes" command = `$julia_cmd -e $expr` verbose && println("Build \".ji\" local cache:\n $command")