mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-27 03:39:20 +09:00
fix: sysimage for julials
This commit is contained in:
parent
9a137c8bd2
commit
2f81ec6035
2 changed files with 5 additions and 7 deletions
|
@ -11,12 +11,12 @@ Pkg.add("PackageCompiler")
|
|||
|
||||
# add extra dependencies
|
||||
# these packages are manually collected
|
||||
pkg_extra = ["Logging", "Sockets", "DataStructures", "Tar", "ArgTools", "Dates", "Downloads", "TOML", "JSONRPC", "SymbolServer"]
|
||||
pkg_extra = ["Logging", "Sockets", "DataStructures", "Tar", "ArgTools", "Dates", "Downloads", "TOML", "JSONRPC", "SymbolServer", "CSTParser", "StaticLint", "JSON"]
|
||||
Pkg.add(pkg_extra)
|
||||
@info "added dependencies"
|
||||
|
||||
# Extra package to be executed in precompiled code
|
||||
pkg_precompiled = []
|
||||
pkg_precompiled = ["Pkg"]
|
||||
|
||||
# save pkgs to be used for precompile functions with traced script
|
||||
out_path = joinpath(Pkg.project().path |> dirname, "precompile_exec_head.jl")
|
||||
|
@ -24,10 +24,8 @@ out_path = joinpath(Pkg.project().path |> dirname, "precompile_exec_head.jl")
|
|||
open(out_path, "w") do io
|
||||
println(io, "using LanguageServer")
|
||||
println(io, "using " * join(pkg_extra, ", "))
|
||||
# println(io, "using " * join(pkg_precompiled, ", "))
|
||||
if Sys.iswindows()
|
||||
println(io, "import FileWatching")
|
||||
end
|
||||
println(io, "using " * join(pkg_precompiled, ", "))
|
||||
println(io, "import FileWatching")
|
||||
end
|
||||
@info "finished writing precompile head file"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue