commit | 49f9451b35b4c02f7431b5b99a67087c05573160 | [log] [tgz] |
---|---|---|
author | Eli Lipsitz <elipsitz@google.com> | Thu Jan 26 23:22:30 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 26 23:22:30 2023 +0000 |
tree | 2e75873c3caa5671a400641e633ad6f10f2a78fb | |
parent | 98578de84dcbf93825a9675fe8c92cadb1101177 [diff] |
pw_build: Avoid importing pty on Windows The pw-wrap-ninja command relies on pty for intercepting and parsing Ninja output. This doesn't work on Windows, so on Windows the script simply runs Ninja without any wrapper. As it turns out, the 'pty' module, while existing on Windows, breaks if you attempt to actually import it. Since this module isn't used in the script when it runs on Windows anyways, this commit guards its import behind a platform check. Change-Id: I73f58911f6e665b6a46d32a3acf600ee29760585 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126941 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: 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/.