-
-
Notifications
You must be signed in to change notification settings - Fork 198
Closed
Description
It is given as an argument but then never used in the function body
PackageCompiler.jl/src/incremental.jl
Lines 114 to 145 in 54c0c12
| """ | |
| 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
Labels
No labels