From fa431dddbc45fa539373c932dec650e1e26a9a5c Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Thu, 13 Jun 2019 00:10:19 +0200 Subject: [PATCH] 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. --- mesonbuild/compilers/clike.py | 2 ++ 1 file changed, 2 insertions(+) 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))