Skip to content

Commit

Permalink
Do not run precompilation for sys0.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed May 20, 2015
1 parent 8a1508d commit cc4ad31
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ importall .Base64
include("io.jl")
include("iostream.jl")

const _is_sys0 = (JLOptions().image_file == C_NULL ||
(JLOptions().build_path != C_NULL &&
endswith(bytestring(JLOptions().build_path), "sys0")))

ccall(:jl_, Void, (Any,), JLOptions().image_file)
ccall(:jl_, Void, (Any,), JLOptions().build_path)
ccall(:jl_, Void, (Any,), (JLOptions().build_path != C_NULL ?
bytestring(JLOptions().build_path) :
"(null)"))

# system & environment
include("libc.jl")
using .Libc: getpid, gethostname, time, msync
Expand Down Expand Up @@ -313,7 +323,7 @@ function __init__()
init_parallel()
end

include("precompile.jl")
_is_sys0 || include("precompile.jl")

include = include_from_node1

Expand Down

0 comments on commit cc4ad31

Please sign in to comment.