clover: Log build options when dumping clc source.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
EdB
2015-05-11 17:45:08 +02:00
committed by Francisco Jerez
parent 2b8c51834b
commit 40665362fd

View File

@@ -709,7 +709,7 @@ clover::compile_program_llvm(const std::string &source,
llvm_ctx.setDiagnosticHandler(diagnostic_handler, &r_log); llvm_ctx.setDiagnosticHandler(diagnostic_handler, &r_log);
if (get_debug_flags() & DBG_CLC) 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 // The input file name must have the .cl extension in order for the
// CompilerInvocation class to recognize it as an OpenCL source file. // CompilerInvocation class to recognize it as an OpenCL source file.