build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I37fcb391dcb215a86a60c26f7512f6ccb8312dc4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/i2c/meson.build b/tools/i2c/meson.build
index 76261b3..fe23704 100644
--- a/tools/i2c/meson.build
+++ b/tools/i2c/meson.build
@@ -10,6 +10,6 @@
include_directories : libi2c_inc,
link_args : '-li2c')
-if get_option('tests').enabled()
+if get_option('tests').allowed()
subdir('test')
endif