commit | 79c1756eeb72e81bd6bcdaf23c94a932fd1ca9aa | [log] [tgz] |
---|---|---|
author | Ted Pudlik <tpudlik@google.com> | Thu Aug 18 23:30:41 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 18 23:30:41 2022 +0000 |
tree | 6a202cf7b3f091bc8759eed1f8295626e6cf33b5 | |
parent | ac7f0090500ed5bc8958f58cc12eb3fdceb67326 [diff] |
pw_build: Don't mutate deps list in bazel macros The deps list is passed by reference. If the caller uses a variable as the deps list, rather than a literal, that variable will be mutated as a side effect of the macro invocation if we use `append`. This is not intended. Change-Id: Iaa3e1e42b72e809e853eef62252486cdc22b78a7 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/106912 Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.