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