Add a static C++ toolchain configuration for freebsd
The toolchain configuration rule freebsd currently is relying on will be removed as part of #8546
Tested locally that the resulting cc_toolchain_config rules are the same with @rules_cc//tools/migration/cc_toolchain_config_comparator.bzl
RELNOTES: None.
PiperOrigin-RevId: 262555744
diff --git a/tools/cpp/BUILD.static.freebsd b/tools/cpp/BUILD.static.freebsd
index a3a69d3..ded0f537 100644
--- a/tools/cpp/BUILD.static.freebsd
+++ b/tools/cpp/BUILD.static.freebsd
@@ -16,7 +16,7 @@
package(default_visibility = ["//visibility:public"])
-load("@bazel_tools//tools/cpp:cc_toolchain_config.bzl", "cc_toolchain_config")
+load(":cc_toolchain_config.bzl", "cc_toolchain_config")
load("@rules_cc//cc:defs.bzl", "cc_toolchain_suite", "cc_toolchain", "cc_library")
cc_library(
@@ -57,7 +57,6 @@
cc_toolchain_config(
name = "local_freebsd",
cpu = "freebsd",
- compiler = "compiler",
)
toolchain(
@@ -92,7 +91,6 @@
cc_toolchain_config(
name = "stub_armeabi-v7a",
cpu = "armeabi-v7a",
- compiler = "compiler",
)
toolchain(