diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-17 15:21:49 +0100 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-30 00:14:44 +0300 |
| commit | 8909a09d2a8713c4fc0c31c2df6c9b022b840213 (patch) | |
| tree | a155f5eeb64e2ac485627d04ec872e50820132a2 | |
| parent | 53f9d60756ee750e93464f8e1b0944ee2b077976 (diff) | |
| download | meson-8909a09d2a8713c4fc0c31c2df6c9b022b840213.tar.gz | |
compilers: clike: log output of sanity check
Particularly if using an exe_wrapper, it can be useful to have output
logged for debugging.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index b163407f7..a42ee9633 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -317,8 +317,7 @@ class CLikeCompiler(Compiler): cmdlist = [binary_name] mlog.debug('Running test binary command: ', mesonlib.join_args(cmdlist)) try: - # fortran code writes to stdout - pe = subprocess.run(cmdlist, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + pe, _, _ = Popen_safe_logged(cmdlist, 'Sanity check', cwd=work_dir) except Exception as e: raise mesonlib.EnvironmentException(f'Could not invoke sanity test executable: {e!s}.') if pe.returncode != 0: |
