Fix attribute name in cc_tool docs
Copybara Import from https://github.com/bazelbuild/rules_cc/pull/290
BEGIN_PUBLIC
Fix attribute name in cc_tool docs (#290)
The attribute [here](https://github.com/bazelbuild/rules_cc/blob/34f0e1f038cff9bf28d65d101c806b48f35bf92e/cc/toolchains/tool.bzl#L66) is named `src` while the example calls is `executable`. This PR renames the example to `src`.
Closes #290
END_PUBLIC
COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/290 from hofbi:fix-cc-tool-example 0cd1fc44bf98b67f5bffe1991eeecdb6c874c6c9
PiperOrigin-RevId: 706134958
Change-Id: I68d6fde87caa8d6670196e081d54c8ec9548861e
diff --git a/cc/toolchains/tool.bzl b/cc/toolchains/tool.bzl
index a60d458..ee0a49b 100644
--- a/cc/toolchains/tool.bzl
+++ b/cc/toolchains/tool.bzl
@@ -125,7 +125,7 @@
cc_tool(
name = "clang_tool",
- executable = "@llvm_toolchain//:bin/clang",
+ src = "@llvm_toolchain//:bin/clang",
# Suppose clang needs libc to run.
data = ["@llvm_toolchain//:lib/x86_64-linux-gnu/libc.so.6"]
tags = ["requires-network"],
diff --git a/docs/toolchain_api.md b/docs/toolchain_api.md
index b51e378..f90bf57 100644
--- a/docs/toolchain_api.md
+++ b/docs/toolchain_api.md
@@ -401,7 +401,7 @@
cc_tool(
name = "clang_tool",
- executable = "@llvm_toolchain//:bin/clang",
+ src = "@llvm_toolchain//:bin/clang",
# Suppose clang needs libc to run.
data = ["@llvm_toolchain//:lib/x86_64-linux-gnu/libc.so.6"]
tags = ["requires-network"],