MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_sancov_lib_path

Function get_sancov_lib_path

src/deopt.rs:741–752  ·  view source on GitHub ↗

get the build static library linked with sanitizers

(deopt: &Deopt)

Source from the content-addressed store, hash-verified

739
740 /// get the build static library linked with sanitizers
741 pub fn get_sancov_lib_path(deopt: &Deopt) -> &'static PathBuf {
742 static PATH: OnceCell<PathBuf> = OnceCell::new();
743 PATH.get_or_init(|| {
744 let lib_name = deopt.config.static_lib_name.clone();
745 let lib_name = lib_name.strip_suffix(".a").unwrap();
746 let san_lib = format!("{}_sancov.a", lib_name);
747 let lib_path: PathBuf = [deopt.get_library_build_lib_path().unwrap(), san_lib.into()]
748 .iter()
749 .collect();
750 lib_path
751 })
752 }
753
754 /// get the build static library linked with fuzzers
755 pub fn get_fuzzer_lib_path(deopt: &Deopt) -> &'static PathBuf {

Callers 1

get_compile_flagsMethod · 0.85

Calls 1

Tested by

no test coverage detected