From 11a9f61e51dd8d2d9bef210b32e9f98639c3fb4d Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 26 Mar 2015 00:12:56 +0200 Subject: Renamed buildtype from "type" to "buildtype" for consistency. --- mesonconf.py | 4 ++-- optinterpreter.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonconf.py b/mesonconf.py index e84c9e5..8773aa0 100755 --- a/mesonconf.py +++ b/mesonconf.py @@ -76,7 +76,7 @@ class Conf: if '=' not in o: raise ConfException('Value "%s" not of type "a=b".' % o) (k, v) = o.split('=', 1) - if k == 'type': + if k == 'buildtype': if v not in build_types: raise ConfException('Invalid build type %s.' % v) self.coredata.buildtype = v @@ -157,7 +157,7 @@ class Conf: print('') print('Core options\n') carr = [] - carr.append(['type', 'Build type', self.coredata.buildtype]) + carr.append(['buildtype', 'Build type', self.coredata.buildtype]) carr.append(['strip', 'Strip on install', self.coredata.strip]) carr.append(['coverage', 'Coverage report', self.coredata.coverage]) carr.append(['pch', 'Precompiled headers', self.coredata.use_pch]) diff --git a/optinterpreter.py b/optinterpreter.py index d30ddad..df5b111 100644 --- a/optinterpreter.py +++ b/optinterpreter.py @@ -16,7 +16,7 @@ import mparser import coredata import os, re -forbidden_option_names = {'type': True, +forbidden_option_names = {'buildtype': True, 'strip': True, 'coverage': True, 'pch': True, -- cgit v1.1