@@ -1031,7 +1031,8 @@ function create_library(package_or_project::String,
10311031 sysimage_build_args:: Cmd = ` ` ,
10321032 include_transitive_dependencies:: Bool = true ,
10331033 include_preferences:: Bool = true ,
1034- script:: Union{Nothing,String} = nothing
1034+ script:: Union{Nothing,String} = nothing ,
1035+ base_sysimage:: Union{Nothing, String} = nothing
10351036 )
10361037
10371038
@@ -1084,7 +1085,7 @@ function create_library(package_or_project::String,
10841085 create_sysimage_workaround (ctx, sysimg_path, precompile_execution_file,
10851086 precompile_statements_file, incremental, filter_stdlibs, cpu_target;
10861087 sysimage_build_args, include_transitive_dependencies, julia_init_c_file,
1087- julia_init_h_file, version, soname, script)
1088+ julia_init_h_file, version, soname, script, base_sysimage )
10881089
10891090 if version != = nothing && Sys. isunix ()
10901091 cd (dirname (sysimg_path)) do
@@ -1148,7 +1149,8 @@ function create_sysimage_workaround(
11481149 julia_init_h_file:: Union{Nothing,String,Vector{String}} ,
11491150 version:: Union{Nothing,VersionNumber} ,
11501151 soname:: Union{Nothing,String} ,
1151- script:: Union{Nothing,String}
1152+ script:: Union{Nothing,String} ,
1153+ base_sysimage:: Union{Nothing, String} = nothing
11521154 )
11531155 project = dirname (ctx. env. project_file)
11541156
@@ -1157,8 +1159,6 @@ function create_sysimage_workaround(
11571159 base_sysimage = joinpath (tmp, " tmp_sys." * Libdl. dlext)
11581160 create_sysimage (String[]; sysimage_path= base_sysimage, project,
11591161 incremental= false , filter_stdlibs, cpu_target)
1160- else
1161- base_sysimage = nothing
11621162 end
11631163
11641164 if ctx. env. pkg === nothing
0 commit comments