sanitizer support

This commit is contained in:
Jorge Aparicio
2016-12-29 23:28:11 -05:00
parent c14f87e3b0
commit 9af6aa3889
45 changed files with 810 additions and 6 deletions

View File

@@ -599,7 +599,8 @@ impl Build {
/// Get the space-separated set of activated features for the standard
/// library.
fn std_features(&self) -> String {
let mut features = "panic-unwind".to_string();
let mut features = "panic-unwind asan lsan msan tsan".to_string();
if self.config.debug_jemalloc {
features.push_str(" debug-jemalloc");
}
@@ -716,6 +717,10 @@ impl Build {
}
}
fn system_llvm(&self, target: &str) -> bool {
self.config.target_config.get(target).map(|t| t.system_llvm).unwrap_or(false)
}
/// Returns the path to `FileCheck` binary for the specified target
fn llvm_filecheck(&self, target: &str) -> PathBuf {
let target_config = self.config.target_config.get(target);