Commit abd4cbb
committed
Add runtime overrides --bcce-threads and --bcce-output-dir
Make the macro-level `max_threads` and `output_dir` settings overridable
at runtime via flags after the `--` separator on `bazel run`. Precedence
is runtime flag > macro param > default.
* `--bcce-threads=N` plugs into the existing `_threads()` helper that
feeds `ProcessPoolExecutor(max_workers=...)`. Invalid values warn and
fall through to the macro/default.
* `--bcce-output-dir=DIR` is consulted via a new `_output_dir()` helper
used by the `compile_commands.json` write path.
README's "Customizing the compile_commands.json generation" section
gains entries for both flags.
Same `--bcce-*` pattern as hedronvision#122; same precedence rule.1 parent e786a7f commit abd4cbb
2 files changed
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | | - | |
60 | | - | |
61 | 72 | | |
62 | 73 | | |
63 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
64 | 83 | | |
65 | 84 | | |
66 | 85 | | |
| |||
1564 | 1583 | | |
1565 | 1584 | | |
1566 | 1585 | | |
1567 | | - | |
1568 | | - | |
| 1586 | + | |
| 1587 | + | |
1569 | 1588 | | |
1570 | 1589 | | |
1571 | 1590 | | |
| |||
0 commit comments