123456789101112131415161718192021 |
- using Pkg; Pkg.activate(@__DIR__); Pkg.instantiate()
- using PackageCompiler
-
- Pkg.activate(joinpath(@__DIR__, ".."), io=devnull)
- using JLD2View
-
- packages = :JLD2View
- sysimage_path = ARGS[1]
-
- @info("Creating system image",
- name=sysimage_path,
- packages)
-
- create_sysimage(
- packages,
- sysimage_path = sysimage_path,
- precompile_execution_file = joinpath(@__DIR__, "precomp.jl"),
-
- # Optional: generate a "portable" sysimage on x86-64 architectures
- cpu_target = "generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)",
- )
|