Skip to content

Commit 90b2e47

Browse files
committed
Sysimage / precompile fixes
* Fix for sysimage compilation * Disable info logging so stdlib build is simpler
1 parent 2bf55a2 commit 90b2e47

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/syntax_tree.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function SyntaxNode(source::SourceFile, raw::GreenNode{SyntaxHead}, position::In
7474
elseif is_syntax_kind(raw)
7575
nothing
7676
else
77-
@error "Leaf node of kind $k unknown to SyntaxNode"
77+
error("Leaf node of kind $k unknown to SyntaxNode")
7878
val = nothing
7979
end
8080
return SyntaxNode(source, raw, position, nothing, true, val)

sysimage/compile.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ cd(@__DIR__)
1717
rm("JuliaSyntax", force=true, recursive=true)
1818
mkdir("JuliaSyntax")
1919
cp("../src", "JuliaSyntax/src")
20-
cp("../Tokenize", "JuliaSyntax/Tokenize")
2120
cp("../test", "JuliaSyntax/test")
2221
projstr = replace(read("../Project.toml", String),
2322
"70703baa-626e-46a2-a12c-08ffd08c73b4"=>"54354a4c-6cac-4c00-8566-e7c1beb8bfd8")

sysimage/precompile_exec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import JuliaSyntax
22
Base.include(@__MODULE__(), joinpath(pkgdir(JuliaSyntax), "test", "test_utils.jl"))
33
Base.include(@__MODULE__(), joinpath(pkgdir(JuliaSyntax), "test", "parser.jl"))
44
JuliaSyntax.enable_in_core!()
5-
@info "Some parsing" Meta.parse("x+y+z-w .+ [a b c]")
5+
Meta.parse("x+y+z-w .+ [a b c]")

0 commit comments

Comments
 (0)