clover: Log build options when dumping clc source.
authorEdB <edb+mesa@sigluy.net>
Mon, 11 May 2015 15:45:08 +0000 (17:45 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 27 May 2015 12:33:58 +0000 (15:33 +0300)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 7d2d941407e4af1fdbba79c44834a6f37334d60e..9b91fee9032a70094fcb172476e6cdd52b5d3b24 100644 (file)
@@ -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.