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

Allow setting platform constraints with --exec_constraints #968

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coeuvre
Copy link
Member

@coeuvre coeuvre commented Aug 17, 2021

By default, clang is detected for cpp configs. While --cpp_env_json can be used to override the default environment variables during toolchain generation, there isn't a way to override platform constraints.

This PR adds flag --exec_constraints which accept a comma separated list of constraint values e.g. --exec_constraints=@bazel_tools//platforms:linux,@bazel_tools//platforms:x86_64,@bazel_tools//tools/cpp:gcc to override the default values.

@crackcomm
Copy link

I would be delighted to have this feature.

@coeuvre
Copy link
Member Author

coeuvre commented Oct 18, 2023

I have rebased the PR. Please review and let me know whether it's feasible to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants