[Mesa-dev] [PATCH] clover: Always print the compile log
Tom Stellard
tom at stellard.net
Mon Aug 26 18:04:48 PDT 2013
From: Tom Stellard <thomas.stellard at amd.com>
This way users can see compiler warnings.
---
src/gallium/state_trackers/clover/llvm/invocation.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index e6cd415..290c31a 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -206,6 +206,9 @@ namespace {
if (!c.ExecuteAction(act))
throw build_error(log);
+ // Display any warnings
+ std::cerr << log;
+
// Get address spaces map to be able to find kernel argument address space
memcpy(address_spaces, c.getTarget().getAddressSpaceMap(),
sizeof(address_spaces));
--
1.7.11.4
More information about the mesa-dev
mailing list