Mesa (10.1): clover: Prevent Clang from printing number of errors and warnings to stderr.
Carl Worth
cworth at kemper.freedesktop.org
Mon Jun 23 23:30:00 UTC 2014
Module: Mesa
Branch: 10.1
Commit: bf50129ba676ea4b0f7de28e0a98a8e7cb5523ee
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf50129ba676ea4b0f7de28e0a98a8e7cb5523ee
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Mon May 12 16:32:29 2014 -0400
clover: Prevent Clang from printing number of errors and warnings to stderr.
https://bugs.freedesktop.org/show_bug.cgi?id=78581
CC: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
(cherry picked from commit 0cc391f0136c1532701a04c9b2f3a4cc49f25e8c)
---
src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index e826669..ecf727d 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -182,6 +182,11 @@ namespace {
c.getLangOpts().NoBuiltin = true;
c.getTargetOpts().Triple = triple;
c.getTargetOpts().CPU = processor;
+
+ // This is a workaround for a Clang bug which causes the number
+ // of warnings and errors to be printed to stderr.
+ // http://www.llvm.org/bugs/show_bug.cgi?id=19735
+ c.getDiagnosticOpts().ShowCarets = false;
#if HAVE_LLVM <= 0x0301
c.getInvocation().setLangDefaults(clang::IK_OpenCL);
#else
More information about the mesa-commit
mailing list