Reserve build_ prefix in option names.

pull/5412/head
Jussi Pakkanen 6 years ago
parent ef024583df
commit da1f663e8d
  1. 2
      mesonbuild/optinterpreter.py

@ -23,7 +23,7 @@ from . import compilers
forbidden_option_names = set(coredata.builtin_options.keys()) forbidden_option_names = set(coredata.builtin_options.keys())
forbidden_prefixes = [lang + '_' for lang in compilers.all_languages] + ['b_', 'backend_'] forbidden_prefixes = [lang + '_' for lang in compilers.all_languages] + ['b_', 'backend_']
reserved_prefixes = ['cross_'] reserved_prefixes = ['cross_', 'build_']
def is_invalid_name(name: str, *, log: bool = True) -> bool: def is_invalid_name(name: str, *, log: bool = True) -> bool:
if name in forbidden_option_names: if name in forbidden_option_names:

Loading…
Cancel
Save