Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/static_julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down