bazel-toolchains icon indicating copy to clipboard operation
bazel-toolchains copied to clipboard

Allow setting platform constraints with --exec_constraints

Open coeuvre opened this issue 4 years ago • 7 comments

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.

coeuvre avatar Aug 17 '21 02:08 coeuvre

I would be delighted to have this feature.

crackcomm avatar Feb 24 '23 07:02 crackcomm

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

coeuvre avatar Oct 18 '23 09:10 coeuvre