From e5a05ed68daac781c79e7447abf98b1ad24569a0 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 29 Oct 2023 03:21:22 +0100 Subject: [PATCH] only reset DEPOT_PATH after precompilation workload ran --- base/loading.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/base/loading.jl b/base/loading.jl index eb1a5cd90d892..0b4efac082042 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2317,12 +2317,8 @@ function include_package_for_output(pkg::PkgId, input::String, depot_path::Vecto Core.Compiler.track_newly_inferred.x = false end - # restore the globals we set before running precompilation workload in case they were altered + # restore to initial state to make precompilation result relocatable append!(empty!(Base.DEPOT_PATH), depot_path) - append!(empty!(Base.DL_LOAD_PATH), dl_load_path) - append!(empty!(Base.LOAD_PATH), load_path) - ENV["JULIA_LOAD_PATH"] = join(load_path, Sys.iswindows() ? ';' : ':') - set_active_project(nothing) end