Skip to content

Commit

Permalink
Namespace builtins on Julia version
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
timholy committed Feb 22, 2019
1 parent 9203ee6 commit 592d058
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*.jl.mem
expected.out
failed.out
src/builtins.jl
src/builtins*.jl
deps/build.log
docs/build/
test/results.md
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ using InteractiveUtils

const srcpath = joinpath(dirname(@__DIR__), "src")
include(joinpath(srcpath, "generate_builtins.jl"))
open(joinpath(srcpath, "builtins.jl"), "w") do io
open(joinpath(srcpath, "builtins-julia$(Int(VERSION.major)).$(Int(VERSION.minor)).jl"), "w") do io
generate_builtins(io)
end
2 changes: 1 addition & 1 deletion src/JuliaInterpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const empty_svec = Core.svec()

include("localmethtable.jl")
include("interpret.jl")
include("builtins.jl")
include("builtins-julia$(Int(VERSION.major)).$(Int(VERSION.minor)).jl")

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

0 comments on commit 592d058

Please sign in to comment.