Pch disabling works now.

pull/579/head
Jussi Pakkanen 9 years ago
parent 76d88259bd
commit 92dfc4eb0b
  1. 2
      mesonbuild/compilers.py
  2. 3
      mesonbuild/coredata.py

@ -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',

@ -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)

Loading…
Cancel
Save