From 1bba9cfb9036eb44bb549f34c090cb38bd0d84fd Mon Sep 17 00:00:00 2001 From: Marc-Antoine Perennou Date: Thu, 6 Feb 2020 12:32:42 +0100 Subject: rustbuild: include channel in sanitizers installed name Allows parallel install of different rust channels Signed-off-by: Marc-Antoine Perennou --- src/bootstrap/native.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/bootstrap/native.rs') diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 1cfb4b2f63b..5790f236cc8 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -571,7 +571,7 @@ impl Step for Sanitizers { } let out_dir = builder.native_dir(self.target).join("sanitizers"); - let runtimes = supported_sanitizers(&out_dir, self.target); + let runtimes = supported_sanitizers(&out_dir, self.target, &builder.config.channel); if runtimes.is_empty() { return runtimes; } @@ -635,7 +635,11 @@ pub struct SanitizerRuntime { } /// Returns sanitizers available on a given target. -fn supported_sanitizers(out_dir: &Path, target: Interned) -> Vec { +fn supported_sanitizers( + out_dir: &Path, + target: Interned, + channel: &str, +) -> Vec { let mut result = Vec::new(); match &*target { "x86_64-apple-darwin" => { @@ -644,7 +648,7 @@ fn supported_sanitizers(out_dir: &Path, target: Interned) -> Vec) -> Vec) -> Vec) -> Vec