summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/clike.py
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2019-06-13 00:10:19 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-06-13 22:40:16 +0300
commitfa431dddbc45fa539373c932dec650e1e26a9a5c (patch)
treed03cd16f20b8948dba3f6902eee4363520fb7ce5 /mesonbuild/compilers/clike.py
parentbf1323a48c792688aa5c6994f1146760c3fd82fc (diff)
downloadmeson-fa431dddbc45fa539373c932dec650e1e26a9a5c.tar.gz
compilers: Add logging for symbol prefix test
Currently meson does not write the outcome of this test to the log file which makes debugging wrong outcomes of this incredibly tedious.
Diffstat (limited to 'mesonbuild/compilers/clike.py')
-rw-r--r--mesonbuild/compilers/clike.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/clike.py b/mesonbuild/compilers/clike.py
index 89419313d..e923ff227 100644
--- a/mesonbuild/compilers/clike.py
+++ b/mesonbuild/compilers/clike.py
@@ -870,9 +870,11 @@ class CLikeCompiler:
# Check if the underscore form of the symbol is somewhere
# in the output file.
if b'_' + symbol_name in line:
+ mlog.debug("Symbols have underscore prefix: YES")
return True
# Else, check if the non-underscored form is present
elif symbol_name in line:
+ mlog.debug("Symbols have underscore prefix: NO")
return False
raise RuntimeError('BUG: {!r} check failed unexpectedly'.format(n))