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