diff --git a/mesonbuild/cmake/toolchain.py b/mesonbuild/cmake/toolchain.py index 43f262605922..9eb961c52bc7 100644 --- a/mesonbuild/cmake/toolchain.py +++ b/mesonbuild/cmake/toolchain.py @@ -232,10 +232,15 @@ def update_cmake_compiler_state(self) -> None: cmake_args += trace.trace_args() cmake_args += cmake_get_generator_args(self.env) cmake_args += [f'-DCMAKE_TOOLCHAIN_FILE={temp_toolchain_file.as_posix()}', '.'] - rc, _, raw_trace = self.cmakebin.call(cmake_args, build_dir=build_dir, disable_cache=True) + rc, raw_stdout, raw_trace = self.cmakebin.call(cmake_args, build_dir=build_dir, disable_cache=True) if rc != 0: mlog.warning('CMake Toolchain: Failed to determine CMake compilers state') + mlog.debug(f' -- return code: {rc}') + for line in raw_stdout.split('\n'): + mlog.debug(f' -- stdout: {line.rstrip()}') + for line in raw_trace.split('\n'): + mlog.debug(f' -- stderr: {line.rstrip()}') return # Parse output