Skip to contentSkip to conversation

meson: be strict for boolean options

PATCH Applied Anton Kochkov 2 participants 2 messages Aug 17, 2022 – Aug 18, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 meson: be strict for boolean options

While Meson buildsystem accepts the 'false' as a value for boolean options, it's not covered by the specification and in general invalid. Some alternative Meson implementations, like Muon, do not accept 'false' or 'true' as a valid value for the boolean options.

See https://mesonbuild.com/Build-options.html

---
 meson_options.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meson_options.txt +2 -2
index e58e158396..63f0725174 100644
@@ -82,9 +82,9 @@ option('tcg', type: 'feature', value: 'enabled',
        description: 'TCG support')
 option('tcg_interpreter', type: 'boolean', value: false,
        description: 'TCG with bytecode interpreter (slow)')
-option('cfi', type: 'boolean', value: 'false',
+option('cfi', type: 'boolean', value: false,
        description: 'Control-Flow Integrity (CFI)')
-option('cfi_debug', type: 'boolean', value: 'false',
+option('cfi_debug', type: 'boolean', value: false,
        description: 'Verbose errors in case of CFI violation')
 option('multiprocess', type: 'feature', value: 'auto',
        description: 'Out of process device emulation support')

--
2.37.2