Skip to content

Commit

Permalink
Use JULIA_PKGDIR for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 22, 2015
1 parent 370af84 commit c396349
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function init_load_path()
end
push!(LOAD_PATH,abspath(JULIA_HOME,"..","local","share","julia","site",vers))
push!(LOAD_PATH,abspath(JULIA_HOME,"..","share","julia","site",vers))
push!(LOAD_CACHE_PATH,abspath(homedir(),".julia","lib",vers))
push!(LOAD_CACHE_PATH,abspath(Pkg.Dir._pkgroot(),"lib",vers))
push!(LOAD_CACHE_PATH,abspath(JULIA_HOME,"..","usr","lib","julia")) #TODO: fixme
end

Expand Down
3 changes: 2 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ function create_expr_cache(input::AbstractString, output::AbstractString)
--output-ji $output --output-incremental=yes
--startup-file=no --history-file=no
--eval $code_object`,
["JULIA_HOME=$JULIA_HOME", "HOME=$(homedir())"])), "w", STDOUT)
["JULIA_HOME=$JULIA_HOME", "HOME=$(homedir())",
"JULIA_PKGDIR=$(Pkg.dir())"])), "w", STDOUT)
serialize(io, quote
empty!(Base.LOAD_PATH)
append!(Base.LOAD_PATH, $LOAD_PATH)
Expand Down

0 comments on commit c396349

Please sign in to comment.