examples
examples copied to clipboard
Example of minimal hermetic gcc toolchain
As part of https://github.com/bazelbuild/bazel/issues/21198, this PR adds an example on how to set up a minimal hermetic gcc toolchain without advanced features like feature and action_config.
Follow-up PRs will include
- Clang toolchain for single-platform build
- Clang toolchain for cross-compilation build. The toolchain includes example of using
featureandaction_configto further configure the cc actions.
Once these PRs are merged, I'll put up a separate tutorial to cover the new cc toolchain resolution API alongside with the hermetic toolchain examples to replace https://bazel.build/tutorials/ccp-toolchain-config.