aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-07-12 21:43:52 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-07-21 16:45:01 -0400
commit1f527550c6ac8462f67862d6cfa74340c159c975 (patch)
treeb185e37de52092627bd00c5823025cfc196617f0 /mesonbuild/compilers
parent93ba9371868e64c38178c5dc4e888e2321a47f30 (diff)
downloadmeson-1f527550c6ac8462f67862d6cfa74340c159c975.zip
meson-1f527550c6ac8462f67862d6cfa74340c159c975.tar.gz
meson-1f527550c6ac8462f67862d6cfa74340c159c975.tar.bz2
compilers: include compiler detection output in the debug logs
We do something similar when running get_compiler() method checks from the DSL. This ensures that if errors happen, the log file we tell people to check actually works.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/detect.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py
index 36c5732..d7929ad 100644
--- a/mesonbuild/compilers/detect.py
+++ b/mesonbuild/compilers/detect.py
@@ -417,7 +417,12 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin
cmd = compiler + [arg]
try:
+ mlog.debug('-----')
+ mlog.debug(f'Detecting compiler via: {join_args(cmd)}')
p, out, err = Popen_safe(cmd)
+ mlog.debug(f'compiler returned {p}')
+ mlog.debug(f'compiler stdout:\n{out}')
+ mlog.debug(f'compiler stderr:\n{err}')
except OSError as e:
popen_exceptions[join_args(cmd)] = e
continue