Skip to content

Commit a3335e7

Browse files
authored
Don't override the users depot path (#55)
1 parent ae567ec commit a3335e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiling.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ function compile_products(recipe::ImageRecipe)
7878
end
7979

8080
project_arg = recipe.project == "" ? Base.active_project() : recipe.project
81-
env_overrides = Dict{String,Any}("JULIA_LOAD_PATH"=>nothing, "JULIA_DEPOT_PATH"=>nothing)
82-
inst_cmd = addenv(`$(Base.julia_cmd(cpu_target=precompile_cpu_target)) --project=$project_arg -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"`, env_overrides...)
81+
inst_cmd = `$(Base.julia_cmd(cpu_target=precompile_cpu_target)) --project=$project_arg -e "using Pkg; Pkg.instantiate(); Pkg.precompile()"`
8382
recipe.verbose && println("Running: $inst_cmd")
8483
precompile_time = time_ns()
8584
if !success(pipeline(inst_cmd; stdout, stderr))
@@ -110,7 +109,6 @@ function compile_products(recipe::ImageRecipe)
110109
end
111110

112111
# Threading
113-
cmd = addenv(cmd, "OPENBLAS_NUM_THREADS" => 1, "JULIA_NUM_THREADS" => 1, env_overrides...)
114112
recipe.verbose && println("Running: $cmd")
115113
# Show a spinner while the compiler runs
116114
spinner_done, spinner_task = _start_spinner("Compiling...")

0 commit comments

Comments
 (0)