diff options
author | Stephen Gregoratto <dev@sgregoratto.me> | 2021-02-26 15:54:49 +1100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-02-26 10:28:00 -0500 |
commit | ec5fe58e6dd0f42f126b48d1ebd191deeea38541 (patch) | |
tree | 6e442e0fa8ae90baa99eabb57b9be36d4f6e74a3 /mesonbuild | |
parent | ace22f21a7f0abe9250e673a258e4adf3afa4ac0 (diff) | |
download | meson-ec5fe58e6dd0f42f126b48d1ebd191deeea38541.zip meson-ec5fe58e6dd0f42f126b48d1ebd191deeea38541.tar.gz meson-ec5fe58e6dd0f42f126b48d1ebd191deeea38541.tar.bz2 |
Allow printing UserOptions in the summary
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/interpreter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 03e2d4f..98c5713 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1878,6 +1878,9 @@ class Summary: elif isinstance(i, (ExternalProgram, Dependency)): FeatureNew.single_use('dependency or external program in summary', '0.57.0', subproject) formatted_values.append(i.summary_value()) + elif isinstance(i, coredata.UserOption): + FeatureNew.single_use('feature option in summary', '0.58.0', subproject) + formatted_values.append(i.printable_value()) else: m = 'Summary value in section {!r}, key {!r}, must be string, integer, boolean, dependency or external program' raise InterpreterException(m.format(section, k)) |