Skip to content

toml_path is unused in compile_incremental #222

@KristofferC

Description

@KristofferC

It is given as an argument but then never used in the function body

"""
compile_incremental(
toml_path::String, snoopfile::String;
force = false, precompile_file = nothing, verbose = true,
debug = false, cc_flags = nothing
)
Extract all calls from `snoopfile` and ahead of time compiles them
incrementally into the current system image.
`force = true` will replace the old system image with the new one.
The argument `toml_path` should contain a project file of the packages that `snoopfile` explicitly uses.
Implicitly used packages & modules don't need to be contained!
To compile just a single package, see the simpler version `compile_incremental(package::Symbol)`:
"""
function compile_incremental(
toml_path::Union{String, Nothing}, precompiles::String;
force = false, verbose = true,
debug = false, cc_flags = nothing
)
systemp = sysimg_folder("sys.a")
sysout = sysimg_folder("sys.$(Libdl.dlext)")
code = PrecompileCommand(precompiles)
run_julia(
code, O = 3, output_o = systemp, g = 1,
track_allocation = "none", startup_file = "no", code_coverage = "none"
)
build_shared(sysout, systemp, false, sysimg_folder(), verbose, "3", debug, system_compiler, cc_flags)
curr_syso = current_systemimage()
force && cp(sysout, curr_syso, force = true)
return sysout, curr_syso
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions