mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 01:40:08 +01:00
clc: Print errors when initializing clang fails
It's nice to know what actually went wrong. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33576>
This commit is contained in:
parent
b9c6afd3a7
commit
ed07aab147
1 changed files with 1 additions and 1 deletions
|
|
@ -840,7 +840,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
|
|||
if (!clang::CompilerInvocation::CreateFromArgs(c->getInvocation(),
|
||||
clang_opts,
|
||||
diag)) {
|
||||
clc_error(logger, "Couldn't create Clang invocation.\n");
|
||||
clc_error(logger, "Couldn't create Clang invocation.\n%s\n", diag_log_str.c_str());
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue