We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7ba89 commit 77aa640Copy full SHA for 77aa640
utils.bzl
@@ -21,6 +21,8 @@ def bool_flag_config(name, build_setting_default):
21
22
def define_feature(condition, define):
23
"""Defines `define`=1 if condition is true, otherwise 0"""
24
+ if not define.startswith(("CRAS_", "HAVE_")):
25
+ fail("Invalid feature switch %r. Feature switch names must start with CRAS_ or HAVE_. See go/cras-style#build-time-feature-switches" % define)
26
return select({
27
condition: ["{}=1".format(define)],
28
"//conditions:default": ["{}=0".format(define)],
0 commit comments