Introduce --incompatible_disable_crosstool_file flag.
Issue #5380
RELNOTES: Added --incompatible_disable_crosstool_file (https://github.com/bazelbuild/bazel/issues/7320)
PiperOrigin-RevId: 232264088
diff --git a/tools/cpp/BUILD.static.freebsd b/tools/cpp/BUILD.static.freebsd
index fc383ce..5dd2a8e 100644
--- a/tools/cpp/BUILD.static.freebsd
+++ b/tools/cpp/BUILD.static.freebsd
@@ -16,6 +16,8 @@
package(default_visibility = ["//visibility:public"])
+load("@bazel_tools//tools/cpp:cc_toolchain_config.bzl", "cc_toolchain_config")
+
cc_library(
name = "malloc",
)
@@ -39,6 +41,7 @@
cc_toolchain(
name = "cc-compiler-freebsd",
toolchain_identifier = "local_freebsd",
+ toolchain_config = ":local_freebsd",
all_files = ":empty",
ar_files = ":empty",
as_files = ":empty",
@@ -50,6 +53,12 @@
supports_param_files = 0,
)
+cc_toolchain_config(
+ name = "local_freebsd",
+ cpu = "freebsd",
+ compiler = "compiler",
+)
+
toolchain(
name = "cc-toolchain-freebsd",
exec_compatible_with = [
@@ -67,6 +76,7 @@
cc_toolchain(
name = "cc-compiler-armeabi-v7a",
toolchain_identifier = "stub_armeabi-v7a",
+ toolchain_config = ":stub_armeabi-v7a",
all_files = ":empty",
ar_files = ":empty",
as_files = ":empty",
@@ -78,6 +88,12 @@
supports_param_files = 0,
)
+cc_toolchain_config(
+ name = "stub_armeabi-v7a",
+ cpu = "armeabi-v7a",
+ compiler = "compiler",
+)
+
toolchain(
name = "cc-toolchain-armeabi-v7a",
exec_compatible_with = [