Function has_remap_path_prefix

Source
fn has_remap_path_prefix(args: &[String]) -> bool
Expand description

HACK: Detect the potential presence of --remap-path-prefix

As CLI parsing is contextual and dependent on the CLI definition to understand the context, we can’t say for sure whether --remap-path-prefix is present, so we guess if anything looks like it. If we could, we’d strip it out for hashing. Instead, we use this to avoid hashing rustflags if it might be present to avoid the risk of taking a flag that is trying to make things reproducible and making things less reproducible by the -Cextra-filename showing up in the rlib, even with split-debuginfo.