-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks to allow vendoring into Base (#119)
* Simplify `@doc` usage for use in Base bootstrap. * Separate sysimage precompile into part which can be used in Base - when vendoring into base, pkgdir doesn't exist - we need to pass a path to where it's vendored instead. * Relative include for JuliaSyntax tests. This allows these files to be run during precompilation even when JuliaSyntax isn't a standalone module.
- Loading branch information
Showing
5 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
function precompile_JuliaSyntax(mod, juliasyntax_path) | ||
Base.include(mod, joinpath(juliasyntax_path, "test", "test_utils.jl")) | ||
Base.include(mod, joinpath(juliasyntax_path, "test", "parser.jl")) | ||
JuliaSyntax.enable_in_core!() | ||
Meta.parse("x+y+z-w .+ [a b c]") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import JuliaSyntax | ||
Base.include(@__MODULE__(), joinpath(pkgdir(JuliaSyntax), "test", "test_utils.jl")) | ||
Base.include(@__MODULE__(), joinpath(pkgdir(JuliaSyntax), "test", "parser.jl")) | ||
JuliaSyntax.enable_in_core!() | ||
Meta.parse("x+y+z-w .+ [a b c]") | ||
include("precompile.jl") | ||
precompile_JuliaSyntax(@__MODULE__(), pkgdir(JuliaSyntax)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters