Mesa (master): clover: Log build options when dumping clc source.
Francisco Jerez
currojerez at kemper.freedesktop.org
Wed May 27 12:37:50 UTC 2015
Module: Mesa
Branch: master
Commit: 40665362fd660a8d58f9edbdfec79a33d44b1534
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=40665362fd660a8d58f9edbdfec79a33d44b1534
Author: EdB <edb+mesa at sigluy.net>
Date: Mon May 11 17:45:08 2015 +0200
clover: Log build options when dumping clc source.
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 7d2d941..9b91fee 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.
More information about the mesa-commit
mailing list