blob: c47b412c21455c2a02a768624d1303c477c09537 [file] [log] [blame]
Ensure that sanitizer runtimes are built for all our supported x86_64
platforms.
Now that we patch in our own custom -cros and -pc targets instead
of falling back to -unknown, we need to add builds for those
targets as well to allow the linker to find the correct versions
of the librustc_[almt]san static libraries.
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index 97d9dbdd63f..5a97f635957 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -796,7 +796,7 @@ fn supported_sanitizers(
"x86_64-apple-darwin" => darwin_libs("osx", &["asan", "lsan", "tsan"]),
"x86_64-fuchsia" => common_libs("fuchsia", "x86_64", &["asan"]),
"x86_64-unknown-freebsd" => common_libs("freebsd", "x86_64", &["asan", "msan", "tsan"]),
- "x86_64-unknown-linux-gnu" => {
+ "x86_64-unknown-linux-gnu" | "x86_64-cros-linux-gnu" | "x86_64-pc-linux-gnu" => {
common_libs("linux", "x86_64", &["asan", "lsan", "msan", "tsan"])
}
_ => Vec::new(),