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.
pull/5490/head
Marvin Scholz 6 years ago committed by Jussi Pakkanen
parent bf1323a48c
commit fa431dddbc
  1. 2
      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))

Loading…
Cancel
Save