tree: cc308cc4bf85def371e3f4a95d85fbda2182f7bc
  1. app/
  2. .bazelrc
  3. BUILD.bazel
  4. MODULE.bazel
  5. MODULE.bazel.lock
  6. README.md
  7. workflows.json
examples/nrf52_pw_clang/README.md

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:

cd examples/nrf52_pw_clang/
bazelisk build :nrf52 --platforms=:nrf52833dk