Skip to main content

load_captured_linker_args

Function load_captured_linker_args 

Source
pub fn load_captured_linker_args(
    cache_dir: &Path,
) -> Result<HashMap<String, CapturedLinkerInvocation>>
Expand description

Walk a whisker-linker-shim cache dir and collapse duplicates per output filename, keeping the most-recent timestamp. Same shape as load_captured_args but for the linker side. Empty / unparseable files get a warning, not an abort.

Keying by the basename of the output path (libdemo.dyliblibdemo.dylib) lets the patcher look up the linker call that produced a specific crate’s library without having to re-derive the cargo’s hash-suffixed path. Output-less captures are keyed under _unknown.