Custom compilation modes #24092
Labels
team-Configurability
platforms, toolchains, cquery, select(), config transitions
team-Core
Skyframe, bazel query, BEP, options parsing, bazelrc
type: feature request
untriaged
Description of the feature request:
It would be beneficial if users would be able to add their own "modes". Currently there are three hardcoded modes
--compilation_mode (fastbuild|opt|dbg) (-c)
. That these modes come with default flags, which do not map well to all projects is a minor issue. The bigger issue is that probjects with more flag sets and configurations have no good way to specify a different output directory:Really the concept of
compilation_modes
is quite nice, but limited by being hardcoded.Which category does this issue belong to?
Configurability, Core
What underlying problem are you trying to solve with this feature?
Different output dictionaries per user flag set.
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?release 7.4.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?Have you found anything relevant by searching the web?
https://bazel.build/docs/user-manual#compilation-mode
https://bazel.build/docs/user-manual#platform-suffix
Could be used as a way around this issue, but is rather clunky (and flags x platfrom x configuration matrix explosive) as long as there is a better way.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: