Skip to content

Commit

Permalink
only reset DEPOT_PATH after precompilation workload ran
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Nov 2, 2023
1 parent 20d177d commit e5a05ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e5a05ed

Please sign in to comment.