diff options
Diffstat (limited to 'mesonbuild/mintro.py')
-rw-r--r-- | mesonbuild/mintro.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index 8408720..130cf93 100644 --- a/mesonbuild/mintro.py +++ b/mesonbuild/mintro.py @@ -287,6 +287,8 @@ def list_buildoptions(coredata: cdata.CoreData, subprojects: T.Optional[T.List[s typestr = 'integer' elif isinstance(opt, cdata.UserArrayOption): typestr = 'array' + if opt.choices: + optdict['choices'] = opt.choices else: raise RuntimeError("Unknown option type") optdict['type'] = typestr |