@@ -770,6 +770,8 @@ compiler (can also include extra arguments to the compiler, like `-g`).
770770
771771- `sysimage_build_args::Cmd`: A set of command line options that is used in the Julia process building the sysimage,
772772 for example `-O1 --check-bounds=yes`.
773+
774+ - `script::String`: Path to a file that gets executed in the `--output-o` process.
773775"""
774776function create_app (package_dir:: String ,
775777 app_dir:: String ;
@@ -783,7 +785,8 @@ function create_app(package_dir::String,
783785 cpu_target:: String = default_app_cpu_target (),
784786 include_lazy_artifacts:: Bool = false ,
785787 sysimage_build_args:: Cmd = ` ` ,
786- include_transitive_dependencies:: Bool = true )
788+ include_transitive_dependencies:: Bool = true ,
789+ script:: Union{Nothing, String} = nothing )
787790 warn_official ()
788791 if filter_stdlibs && incremental
789792 error (" must use `incremental=false` to use `filter_stdlibs=true`" )
@@ -828,7 +831,8 @@ function create_app(package_dir::String,
828831 cpu_target,
829832 sysimage_build_args,
830833 include_transitive_dependencies,
831- extra_precompiles = join (precompiles, " \n " ))
834+ extra_precompiles = join (precompiles, " \n " ),
835+ script)
832836
833837 for (app_name, julia_main) in executables
834838 create_executable_from_sysimg (joinpath (app_dir, " bin" , app_name), c_driver_program, string (package_name, " ." , julia_main))
0 commit comments