Mark Rust as not working with msan
Change-Id: I323ee4d2ac788de55fd8648d1c0a596f5ecc9931
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/BUILD b/aos/BUILD
index d78b303..596996b 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -187,7 +187,10 @@
":init",
],
override_cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux",
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//visibility:public"],
)
@@ -248,7 +251,10 @@
name = "configuration_rust_fbs",
srcs = ["configuration.fbs"],
crate_name = "aos_configuration_fbs",
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//visibility:public"],
)
@@ -301,7 +307,10 @@
":configuration_fbs",
],
override_cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux",
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//visibility:public"],
deps = [
":configuration_rust_fbs",
@@ -340,7 +349,10 @@
name = "json_to_flatbuffer_rust_fbs",
srcs = ["json_to_flatbuffer.fbs"],
crate_name = "aos_json_to_flatbuffer_fbs",
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//aos:__subpackages__"],
)
@@ -478,7 +490,10 @@
name = "flatbuffers_rs",
srcs = ["flatbuffers.rs"],
crate_name = "aos_flatbuffers",
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//visibility:public"],
deps = [
"@com_github_google_flatbuffers//rust",
@@ -718,7 +733,10 @@
rs_deps = [
"//third_party/cargo:uuid",
],
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//visibility:public"],
)
diff --git a/aos/events/BUILD b/aos/events/BUILD
index 0f23d5a..172133e 100644
--- a/aos/events/BUILD
+++ b/aos/events/BUILD
@@ -50,13 +50,19 @@
flatbuffer_rust_library(
name = "ping_rust_fbs",
srcs = ["ping.fbs"],
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
)
flatbuffer_rust_library(
name = "pong_rust_fbs",
srcs = ["pong.fbs"],
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
)
flatbuffer_cc_library(
@@ -148,7 +154,10 @@
"//third_party/cargo:futures",
"//third_party/cargo:thiserror",
],
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
visibility = ["//visibility:public"],
deps = [
"//aos:configuration_rs",
@@ -159,6 +168,7 @@
rust_doc_test(
name = "event_loop_runtime_doc_test",
crate = ":event_loop_runtime",
+ target_compatible_with = ["@platforms//cpu:x86_64"],
deps = [
":pong_rust_fbs",
],
@@ -177,7 +187,10 @@
":ping_rust_fbs",
":pong_rust_fbs",
],
- target_compatible_with = ["//tools/platforms/rust:has_support"],
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
)
cc_test(