Open ashi009 opened 4 years ago
@hlopko feel free to redirect to Configurability or Starlark
It is true that --compilation_mode is not specific to C++. I guess the issue here is about updating the docs to make that clear and to expose it to Starlark if it's not already exposed.
Description of the problem / feature request:
compilation_mode
is great, but few people know, understand and use it.For rule developers, it's common to have a rule that produces different outputs based on debugging/optimization settings. So we ended with having attributes like
debug
,compress
etc on the rules, which is annoying and also less optimal to use for various reasons.Throughout the entire rule design totorial,
configuration_mode
is not mentioned. Without knowing such a configuration exists, people find their own way to solve an already solved problem.Also per the user manual:
It gives the impression that
compilation_mode
only works for C/C++ builds, but it's something that affects all rules that support it. Having those misleading statements are not promoting the usage of this feature.