|
| 1 | +diff --git a/site/en/configure/attributes.md b/site/en/configure/attributes.md |
| 2 | +index 7b55a6f..945ac81 100644 |
| 3 | +--- a/site/en/configure/attributes.md |
| 4 | ++++ b/site/en/configure/attributes.md |
| 5 | +@@ -45,28 +45,12 @@ config_setting( |
| 6 | + This declares a `cc_binary` that "chooses" its deps based on the flags at the |
| 7 | + command line. Specifically, `deps` becomes: |
| 8 | + |
| 9 | +-<table> |
| 10 | +- <tr style="background: #E9E9E9; font-weight: bold"> |
| 11 | +- <td>Command</td> |
| 12 | +- <td>deps =</td> |
| 13 | +- </tr> |
| 14 | +- <tr> |
| 15 | +- <td><code>bazel build //myapp:mybinary --cpu=arm</code></td> |
| 16 | +- <td><code>[":arm_lib"]</code></td> |
| 17 | +- </tr> |
| 18 | +- <tr> |
| 19 | +- <td><code>bazel build //myapp:mybinary -c dbg --cpu=x86</code></td> |
| 20 | +- <td><code>[":x86_dev_lib"]</code></td> |
| 21 | +- </tr> |
| 22 | +- <tr> |
| 23 | +- <td><code>bazel build //myapp:mybinary --cpu=ppc</code></td> |
| 24 | +- <td><code>[":generic_lib"]</code></td> |
| 25 | +- </tr> |
| 26 | +- <tr> |
| 27 | +- <td><code>bazel build //myapp:mybinary -c dbg --cpu=ppc</code></td> |
| 28 | +- <td><code>[":generic_lib"]</code></td> |
| 29 | +- </tr> |
| 30 | +-</table> |
| 31 | ++| Command | deps | |
| 32 | ++| ----------------------------------------------- | ------------------ | |
| 33 | ++| `bazel build //myapp:mybinary --cpu=arm` | `[":arm_lib"]` | |
| 34 | ++| `bazel build //myapp:mybinary -c dbg --cpu=x86` | `[":x86_dev_lib"]` | |
| 35 | ++| `bazel build //myapp:mybinary --cpu=ppc` | `[":generic_lib"]` | |
| 36 | ++| `bazel build //myapp:mybinary -c dbg --cpu=ppc` | `[":generic_lib"]` | |
| 37 | + |
| 38 | + `select()` serves as a placeholder for a value that will be chosen based on |
| 39 | + *configuration conditions*, which are labels referencing [`config_setting`](/reference/be/general#config_setting) |
0 commit comments