aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r--mesonbuild/mconf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index 9932aa0..00ac981 100644
--- a/mesonbuild/mconf.py
+++ b/mesonbuild/mconf.py
@@ -82,7 +82,10 @@ class Conf:
value_col.append(make_lower_case(opt['value']))
if opt['choices']:
choices_found = True
- choices_col.append('[{0}]'.format(', '.join(make_lower_case(opt['choices']))))
+ if isinstance(opt['choices'], list):
+ choices_col.append('[{0}]'.format(', '.join(make_lower_case(opt['choices']))))
+ else:
+ choices_col.append(make_lower_case(opt['choices']))
else:
choices_col.append('')