sanitizer support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user