Add "incompatible target" messages, for example when building an
ARM-only target with --cpu=x86.
Support work for https://github.com/bazelbuild/bazel/pull/10945.
PiperOrigin-RevId: 339113675
diff --git a/src/main/protobuf/failure_details.proto b/src/main/protobuf/failure_details.proto
index 698c222..c688e9f 100644
--- a/src/main/protobuf/failure_details.proto
+++ b/src/main/protobuf/failure_details.proto
@@ -1040,6 +1040,7 @@
INCORRECT_TOOLCHAIN = 6 [(metadata) = { exit_code: 1 }];
FRAGMENT_CLASS_MISSING = 7 [(metadata) = { exit_code: 1 }];
reserved 8, 9; // For internal use
+ CANT_BUILD_INCOMPATIBLE_TARGET = 10 [(metadata) = { exit_code: 1 }];
}
Code code = 1;
@@ -1135,6 +1136,7 @@
INVALID_EXECUTION_PLATFORM = 16 [(metadata) = { exit_code: 1 }];
ASPECT_CREATION_FAILED = 17 [(metadata) = { exit_code: 1 }];
CONFIGURED_VALUE_CREATION_FAILED = 18 [(metadata) = { exit_code: 1 }];
+ INCOMPATIBLE_TARGET_REQUESTED = 19 [(metadata) = { exit_code: 1 }];
}
Code code = 1;