Skip to content

Commit

Permalink
Revert "Set JULIA_PROJECT when running the subprocess in `ensurecom…
Browse files Browse the repository at this point in the history
…piled()`"

This reverts commit f4bdaaf.
  • Loading branch information
DilumAluthge committed Nov 25, 2024
1 parent f4bdaaf commit 8308cf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PackageCompiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ function ensurecompiled(project, packages, sysimage)
# TODO: Only precompile `packages` (should be available in Pkg 1.8)
cmd = `$(get_julia_cmd()) --sysimage=$sysimage -e 'using Pkg; Pkg.precompile()'`
splitter = Sys.iswindows() ? ';' : ':'
JULIA_LOAD_PATH = "$project$(splitter)@stdlib"
@debug "ensurecompiled: running $cmd" JULIA_LOAD_PATH
cmd = setenv(cmd, "JULIA_LOAD_PATH" => JULIA_LOAD_PATH, "JULIA_PROJECT" => project)
@debug "ensurecompiled: running $cmd" JULIA_LOAD_PATH = "$project$(splitter)@stdlib"
cmd = addenv(cmd, "JULIA_LOAD_PATH" => "$project$(splitter)@stdlib")
run(cmd)
return
end
Expand Down

0 comments on commit 8308cf8

Please sign in to comment.