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.
This commit is contained in:
Marvin Scholz 2019-06-13 00:10:19 +02:00 committed by Jussi Pakkanen
parent bf1323a48c
commit fa431dddbc
1 changed files with 2 additions and 0 deletions

View File

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