From 385a15c6e6a0de09bc3be65dd9a2775ca9cf1c2c Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Tue, 4 Jul 2023 17:19:02 +0200 Subject: [PATCH] print build log in debug log when failing to compile --- src/program.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/program.cpp b/src/program.cpp index 3e043293..953a2b51 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -1153,6 +1153,7 @@ cl_build_status cvk_program::do_build_inner_offline(bool build_to_ir, int status = cvk_exec(cmd, &m_build_log); if (status != 0) { cvk_error_fn("failed to compile the program"); + cvk_debug_fn("%s", m_build_log.c_str()); return CL_BUILD_ERROR; } @@ -1293,6 +1294,7 @@ cl_build_status cvk_program::do_build_inner_online(bool build_to_ir, } if (status != 0) { cvk_error_fn("failed to compile the program"); + cvk_debug_fn("%s", m_build_log.c_str()); return CL_BUILD_ERROR; } return CL_BUILD_SUCCESS;