Query c++ toolchain feature flags

107 views
Skip to first unread message

Michael Fitzner

unread,
Jul 27, 2021, 12:12:42 PM7/27/21
to bazel-discuss
The Bazel doc for c++ toolchains https://docs.bazel.build/versions/4.1.0/cc-toolchain-config-reference.html is mentioning some "Well-known features". Is there a way to query a complete list of features?

Konstantin

unread,
Jul 28, 2021, 2:58:47 PM7/28/21
to bazel-discuss
Try to use the flag `--experimental_save_feature_state` It is supposed to output a couple of files: enabled_features.txt and requested_features.txt. It still would not be the full list of features, but the list of features in effect.

Toolchains are free to introduce new features and are not obligated to implement well-known ones, so "complete list of features" is very much specific to the particular toolchain.

Konstantin
Reply all
Reply to author
Forward
0 new messages