commit | f4296c1d23525f5c3188da9f30f97b73329222ef | [log] [tgz] |
---|---|---|
author | Eli Lipsitz <elipsitz@google.com> | Fri Jan 27 15:59:02 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 27 15:59:02 2023 +0000 |
tree | 175b533043b902e2d2d9d26f7d94207d7f0807da | |
parent | dde2137657998af111f051d619657fbb233fc882 [diff] |
pw_build: Make wrap-ninja remove escape code from action names pw-wrap-ninja has some tricky parsing logic for the raw output of Ninja. Crucially, it must maintain Ninja's output mode where it outputs escape characters, as well as use them as delimiters, without letting them interfere with the rest of the parsing. As it turns out, Ninja's output is slightly more complicated than previously thought. In particular, it sometimes uses different delimiters (unclear exactly when), which results in escape characters being left inside the parsed names of actions. This commit takes the simplest approach -- if an action name ends the specific known escape string, it just removes it. Change-Id: Iea2f0339aec3993cc1a4ebea88fd753b291a6268 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126985 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Eli Lipsitz <elipsitz@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/.