Skip to content

Commit 0ee85ae

Browse files
authored
fix what project is used when building builtins (#174)
* fix what project is used when building builtins * Update JuliaInterpreter.jl * Update src/JuliaInterpreter.jl Co-Authored-By: KristofferC <[email protected]>
1 parent d502e02 commit 0ee85ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/JuliaInterpreter.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ const BUILTIN_FILE = joinpath(@__DIR__, "builtins-julia$(Int(VERSION.major)).$(I
2525
@info "Generating builtins for this julia version..."
2626
gen_builtins_file = joinpath(@__DIR__, "generate_builtins.jl")
2727
# Run as separate command to prevent including the generate_builtins into the precompile cache
28-
run(`$(Base.julia_cmd()) --startup-file=no $gen_builtins_file`)
28+
withenv("JULIA_LOAD_PATH" => joinpath(@__DIR__, "..")) do
29+
run(`$(Base.julia_cmd()) --startup-file=no $gen_builtins_file`)
30+
end
2931
include_dependency(gen_builtins_file)
3032

3133
include("types.jl")

0 commit comments

Comments
 (0)