Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print build log in debug log when failing to compile #570

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down