aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/python_info.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-12-21 09:55:26 -0800
committerEli Schwartz <eschwartz93@gmail.com>2023-02-15 22:58:50 -0500
commit3589815eb9dd8402deabedcd4492f33e04870c56 (patch)
treea039f474889d4be7b639dfacabb5d0b1163d80e4 /mesonbuild/scripts/python_info.py
parenta3098fbfa32ae4ff654f0da45bcfcd9aa7893b5f (diff)
downloadmeson-3589815eb9dd8402deabedcd4492f33e04870c56.zip
meson-3589815eb9dd8402deabedcd4492f33e04870c56.tar.gz
meson-3589815eb9dd8402deabedcd4492f33e04870c56.tar.bz2
interpreter: add a feature.enable_auto_if
It's always been strange to me we don't have an opposite method of the `disable_auto_if` method, but I've been pressed to find a case where we _need_ one, because `disable_auto_if` can't be logically contorted to work. I finally found the case where they're not equivalent: when you don't want to convert to a boolean: ```meson f = get_option('feat').disable_auto_if(not foo) g = get_option('feat').enable_auto_if(foo) dep1 = dependency('foo', required : f) dep2 = dependency('foo', required : g) ```
Diffstat (limited to 'mesonbuild/scripts/python_info.py')
0 files changed, 0 insertions, 0 deletions