-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_toolchain: Split out build-system specific docs
Change-Id: I19a6848aa6193cd96a63d50b6b19c04b4d72ff00 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/238816 Reviewed-by: Kayce Basques <[email protected]> Lint: Lint 🤖 <[email protected]> Pigweed-Auto-Submit: Armando Montanez <[email protected]> Presubmit-Verified: CQ Bot Account <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
- Loading branch information
1 parent
06f958a
commit bf7078a
Showing
4 changed files
with
223 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. _module-pw_toolchain-bazel: | ||
|
||
=============================== | ||
Bazel build system integrations | ||
=============================== | ||
Pigweed provides a suite of Bazel build integrations to compliment existing | ||
Bazel toolchain constructs such as `rules_cc toolchains <https://github.com/bazelbuild/rules_cc/blob/main/cc/toolchains/README.md>`_ | ||
to make it easier to design robust, feature-rich toolchains. | ||
|
||
.. _module-pw_toolchain-bazel-upstream-pigweed-toolchains: | ||
|
||
--------------------------- | ||
Upstream Pigweed toolchains | ||
--------------------------- | ||
Pigweed's C/C++ toolchains are automatically registered when using Pigweed from | ||
a Bzlmod Bazel project. Legacy WORKSPACE-based projects can use Pigweed's | ||
upstream toolchains by calling ``register_pigweed_cxx_toolchains()``: | ||
|
||
.. code-block:: py | ||
load("@pigweed//pw_toolchain:register_toolchains.bzl", "register_pigweed_cxx_toolchains") | ||
register_pigweed_cxx_toolchains() | ||
.. admonition:: Note | ||
:class: warning | ||
|
||
Pigweed's upstream toolchains are subject to change without notice. If you | ||
would prefer more stability in toolchain configurations, consider declaring | ||
custom toolchains in your project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.