summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2024-12-19 13:24:39 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2024-12-19 13:24:39 +0100
commit457b1f9dda7366fbb4e6ac4664750bb2bab48e42 (patch)
tree9b5bdef6d33c369a36cbf4cfed34b5e63925a936
parentb8b65766f46a00087b9d7ae48b12014ca96bb6a3 (diff)
downloadrules-cc-457b1f9dda7366fbb4e6ac4664750bb2bab48e42.tar.gz
Update derived files
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index d82722c..2705c80 100644
--- a/README.md
+++ b/README.md
@@ -75,6 +75,7 @@ A rule to provide defaults. All CC targets take their defaults for CC, CXX, flag
| `"base"` | Other targets (using the same rule) to inherit values from. |
| `"toolchain"` | Optional toolchain directory. A collection of artifacts that provide the tools CC, CXX, and AR (if needed). Note that only artifacts of the specified targets are considered (no runfiles etc.). Specifying this field extends artifacts from `"base"`. If the toolchain supports cross-compilation, it should perform a dispatch on the configuration variable `"BUILD_ARCH"` to determine for which architecture to generate code for. |
| `"deps"` | Optional CC libraries any CC library and CC binary implicitly depend on. Those are typically `"libstdc++"` or `"libc++"` for C++ targets. Specifying this field extends dependencies from `"base"`. |
+| `"include_scanner"` | Specify an include scanner to be run before each compile action, which removes unused headers from the include tree. The given target must contain a single executable artifact, a script or binary. The tool specified must accept as first argument the <out_dir> path and as remaining arguments the argv of the preprocessor command (-E -M). The input headers are located in the local directory `"include"` and the scanner should copy all used headers to `"<out_dir>/include"`. Specifying this field overwrites values from `"base"`. |
| Config variable | Description |
| --------------- | ----------- |