Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of minimal hermetic gcc toolchain #407

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

daivinhtran
Copy link

@daivinhtran daivinhtran commented Feb 3, 2024

As part of bazelbuild/bazel#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

  1. Clang toolchain for single-platform build
  2. Clang toolchain for cross-compilation build. The toolchain includes example of using feature and action_config to 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.

@daivinhtran daivinhtran changed the title Cc toolchain Example of hermetic gcc toolchain Feb 6, 2024
@daivinhtran daivinhtran changed the title Example of hermetic gcc toolchain Example of minimal hermetic gcc toolchain Feb 6, 2024
@daivinhtran daivinhtran force-pushed the cc-toolchain branch 2 times, most recently from 2d3c80b to 3fa174d Compare February 6, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant