Skip to content

Commit 95a190a

Browse files
authored
Fix stuff
1 parent de49c5a commit 95a190a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/PackageCompiler.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function get_julia_cmd()
210210
end
211211
end
212212

213-
function generate_sysimg_jl_contents()
213+
function generate_sysimg_jl_contents(stdlibs::Vector{String})
214214
original_sysimg_source_path = Base.find_source_file("sysimg.jl")
215215
original_sysimg_content = read(sysimg_source_path, String)
216216
if VERSION >= v"1.12-"
@@ -270,8 +270,10 @@ function create_fresh_base_sysimage(stdlibs::Vector{String}; cpu_target::String,
270270
if VERSION >= v"1.12-"
271271
build_settings_source_path = joinpath(tmp, "buildsettings_packagecompiler_$(uuid1()).jl")
272272
open(build_settings_source_path, "w") do io
273-
stdlibs_string =
274-
println(io, "INCLUDE_STDLIBS = \"FileWatching,Libdl,Artifacts,SHA,Sockets,LinearAlgebra,Random\")"
273+
stdlibs_string = join(stdlibs, ',')
274+
println(io, """
275+
INCLUDE_STDLIBS = "$(stdlibs_string)"
276+
""")
275277
end
276278

277279
# The second positional argument `""` is to pass BUILDROOT="" to Base.jl.

0 commit comments

Comments
 (0)