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

Function get_san_lib_path

src/deopt.rs:727–738  ·  view source on GitHub ↗

get the build static library linked with sanitizers

(deopt: &Deopt)

Source from the content-addressed store, hash-verified

725
726 /// get the build static library linked with sanitizers
727 pub fn get_san_lib_path(deopt: &Deopt) -> &'static PathBuf {
728 static PATH: OnceCell<PathBuf> = OnceCell::new();
729 PATH.get_or_init(|| {
730 let lib_name = deopt.config.static_lib_name.clone();
731 let lib_name = lib_name.strip_suffix(".a").unwrap();
732 let san_lib = format!("{}_san.a", lib_name);
733 let lib_path: PathBuf = [deopt.get_library_build_lib_path().unwrap(), san_lib.into()]
734 .iter()
735 .collect();
736 lib_path
737 })
738 }
739
740 /// get the build static library linked with sanitizers
741 pub fn get_sancov_lib_path(deopt: &Deopt) -> &'static PathBuf {

Callers 1

get_compile_flagsMethod · 0.85

Calls 1

Tested by

no test coverage detected