get the build static library linked with sanitizers
(deopt: &Deopt)
| 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 { |
no test coverage detected