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

Function get_fuzzer_lib_path

src/deopt.rs:755–769  ·  view source on GitHub ↗

get the build static library linked with fuzzers

(deopt: &Deopt)

Source from the content-addressed store, hash-verified

753
754 /// get the build static library linked with fuzzers
755 pub fn get_fuzzer_lib_path(deopt: &Deopt) -> &'static PathBuf {
756 static PATH: OnceCell<PathBuf> = OnceCell::new();
757 PATH.get_or_init(|| {
758 let lib_name = deopt.config.static_lib_name.clone();
759 let lib_name = lib_name.strip_suffix(".a").unwrap();
760 let fuzzer_lib = format!("{}_fuzzer.a", lib_name);
761 let lib_path: PathBuf = [
762 deopt.get_library_build_lib_path().unwrap(),
763 fuzzer_lib.into(),
764 ]
765 .iter()
766 .collect();
767 lib_path
768 })
769 }
770
771 /// get the build static library linked with coverage
772 pub fn get_cov_lib_path(deopt: &Deopt, use_shared: bool) -> &'static PathBuf {

Callers 1

get_compile_flagsMethod · 0.85

Calls 1

Tested by

no test coverage detected