From: EdB Date: Mon, 11 May 2015 15:45:08 +0000 (+0200) Subject: clover: Log build options when dumping clc source. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40665362fd660a8d58f9edbdfec79a33d44b1534;p=mesa.git clover: Log build options when dumping clc source. Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 7d2d941407e..9b91fee9032 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -709,7 +709,7 @@ clover::compile_program_llvm(const std::string &source, llvm_ctx.setDiagnosticHandler(diagnostic_handler, &r_log); if (get_debug_flags() & DBG_CLC) - debug_log(source, ".cl"); + debug_log("// Build options: " + opts + '\n' + source, ".cl"); // The input file name must have the .cl extension in order for the // CompilerInvocation class to recognize it as an OpenCL source file.