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.
pull/10598/head
Eli Schwartz 2 years ago
parent 93ba937186
commit 1f527550c6
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 5
      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

Loading…
Cancel
Save