Skip to content

Commit 46831fe

Browse files
authored
only reset DEPOT_PATH after precompilation workload ran
1 parent 914479b commit 46831fe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

base/loading.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,12 +2317,8 @@ function include_package_for_output(pkg::PkgId, input::String, depot_path::Vecto
23172317
Core.Compiler.track_newly_inferred.x = false
23182318
end
23192319

2320-
# restore the globals we set before running precompilation workload in case they were altered
2320+
# restore to initial state to make precompilation result relocatable
23212321
append!(empty!(Base.DEPOT_PATH), depot_path)
2322-
append!(empty!(Base.DL_LOAD_PATH), dl_load_path)
2323-
append!(empty!(Base.LOAD_PATH), load_path)
2324-
ENV["JULIA_LOAD_PATH"] = join(load_path, Sys.iswindows() ? ';' : ':')
2325-
set_active_project(nothing)
23262322

23272323
end
23282324

0 commit comments

Comments
 (0)