From 95c86b5c42faffda4038f72a0961e18c59f81c59 Mon Sep 17 00:00:00 2001 From: Hemmo Nieminen Date: Fri, 6 May 2016 21:59:36 +0300 Subject: [PATCH] Use CoreData.get_builtin_option() to get builtin option values. --- mesonbuild/mintro.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index 0881f69af..955d12b86 100644 --- a/mesonbuild/mintro.py +++ b/mesonbuild/mintro.py @@ -89,14 +89,14 @@ def list_target_files(target_name, coredata, builddata): def list_buildoptions(coredata, builddata): buildtype= {'choices': ['plain', 'debug', 'debugoptimized', 'release'], 'type' : 'combo', - 'value' : coredata.builtin_options['buildtype'].value, + 'value' : coredata.get_builtin_option('buildtype'), 'description' : 'Build type', 'name' : 'type'} - strip = {'value' : coredata.builtin_options['strip'].value, + strip = {'value' : coredata.get_builtin_option('strip'), 'type' : 'boolean', 'description' : 'Strip on install', 'name' : 'strip'} - unity = {'value' : coredata.builtin_options['unity'].value, + unity = {'value' : coredata.get_builtin_option('unity'), 'type' : 'boolean', 'description' : 'Unity build', 'name' : 'unity'}