Print system check information.

This commit is contained in:
Jussi Pakkanen 2013-06-05 18:22:51 +03:00
parent f67e826d8a
commit ed61e6f19a
1 changed files with 6 additions and 2 deletions

View File

@ -575,7 +575,9 @@ class CompilerHolder(InterpreterObject):
prefix = kwargs.get('prefix', '')
if not isinstance(prefix, str):
raise InterpreterException('Prefix argument of sizeof must be a string.')
return self.compiler.sizeof(element, prefix)
esize = self.compiler.sizeof(element, prefix)
print('Checking for size of "%s": %d' % (element, esize))
return esize
def compiles_method(self, args, kwargs):
if len(args) != 1:
@ -595,7 +597,9 @@ class CompilerHolder(InterpreterObject):
string = string.value
if not isinstance(string, str):
raise InterpreterException('Argument to has_header() must be a string')
return self.compiler.has_header(string)
haz = self.compiler.has_header(string)
print('Has header "%s": %s.' % (string, str(haz)))
return haz
class MesonMain(InterpreterObject):
def __init__(self, build):