Skip to content

Commit 592d058

Browse files
committed
Namespace builtins on Julia version
Fixes #59
1 parent 9203ee6 commit 592d058

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*.jl.mem
44
expected.out
55
failed.out
6-
src/builtins.jl
6+
src/builtins*.jl
77
deps/build.log
88
docs/build/
99
test/results.md

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ using InteractiveUtils
22

33
const srcpath = joinpath(dirname(@__DIR__), "src")
44
include(joinpath(srcpath, "generate_builtins.jl"))
5-
open(joinpath(srcpath, "builtins.jl"), "w") do io
5+
open(joinpath(srcpath, "builtins-julia$(Int(VERSION.major)).$(Int(VERSION.minor)).jl"), "w") do io
66
generate_builtins(io)
77
end

src/JuliaInterpreter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const empty_svec = Core.svec()
142142

143143
include("localmethtable.jl")
144144
include("interpret.jl")
145-
include("builtins.jl")
145+
include("builtins-julia$(Int(VERSION.major)).$(Int(VERSION.minor)).jl")
146146

147147
function show_stackloc(io::IO, stack, frame, pc=frame.pc[])
148148
indent = ""

0 commit comments

Comments
 (0)