Pch disabling works now.

This commit is contained in:
Jussi Pakkanen 2016-05-30 20:11:18 +03:00
parent 76d88259bd
commit 92dfc4eb0b
2 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,7 @@ msvc_winlibs = ['kernel32.lib', 'user32.lib', 'gdi32.lib',
base_options = {
'b_pch': coredata.UserBooleanOption('b_pch', 'Use precompiled headers', False),
'b_pch': coredata.UserBooleanOption('b_pch', 'Use precompiled headers', True),
'b_lto': coredata.UserBooleanOption('b_lto', 'Use link time optimization', False),
'b_sanitize': coredata.UserComboOption('b_sanitize',
'Code sanitizer to use',

View File

@ -69,6 +69,9 @@ class UserBooleanOption(UserOption):
return True
raise MesonException('Value "%s" for boolean option "%s" is not a boolean.' % (valuestring, self.name))
def __bool__(self):
return self.value
class UserComboOption(UserOption):
def __init__(self, name, description, choices, value):
super().__init__(name, description, choices)