CMakeToolchain: Log output on compiler state failure

pull/13867/head
Frank Richter 4 weeks ago committed by Dylan Baker
parent b8cdd06af5
commit 040c8d04cc
  1. 7
      mesonbuild/cmake/toolchain.py

@ -232,10 +232,15 @@ class CMakeToolchain:
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

Loading…
Cancel
Save