aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-06-05 18:22:51 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-06-05 18:22:51 +0300
commited61e6f19a84bfd295cfa6928804b5accc65f821 (patch)
tree2ba0d0cfc09628714eb51ed58f2291105cd79ade /interpreter.py
parentf67e826d8a321340cbb88a0d3962c6bb8e61cb02 (diff)
downloadmeson-ed61e6f19a84bfd295cfa6928804b5accc65f821.zip
meson-ed61e6f19a84bfd295cfa6928804b5accc65f821.tar.gz
meson-ed61e6f19a84bfd295cfa6928804b5accc65f821.tar.bz2
Print system check information.
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py
index 438883f..5469cec 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -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):