| ## NRF52 example with Pigweed's ARM Clang toolchain and C++ sources |
| |
| This example is intended to mimic a common situation in downstream projects |
| where Clang is desired instead of GCC, and Pigweed's C++ libraries are built |
| into the image. The example also builds some simple C++ libraries from Pigweed. |
| Having this example allows us to test that we don't break such downstream |
| projects. |
| |
| Note that this example is its own Bazel module, as opposed to a part of the |
| "examples" module like most of the other examples. This is because we need to |
| register the Pigweed ARM Clang toolchain and don't want to accidentally use |
| GCC to build this example. We create a separate Bazel module to separate the |
| toolchains. |
| |
| To build: |
| |
| ```shell |
| cd examples/nrf52_pw_clang/ |
| bazelisk build :nrf52 --platforms=:nrf52833dk |
| ``` |