[Mesa-stable] [PATCH] clover: Prevent Clang from printing number of errors and warnings to stderr.
Tom Stellard
thomas.stellard at amd.com
Mon May 12 13:37:22 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=78581
CC: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
---
src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 82e262f..c211a06 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -187,6 +187,10 @@ namespace {
c.getLangOpts().NoBuiltin = true;
c.getTargetOpts().Triple = triple;
c.getTargetOpts().CPU = processor;
+
+ // This prevents Clang from printing the number of warnings and errors
+ // to stderr.
+ c.getDiagnosticOpts().ShowCarets = false;
#if HAVE_LLVM <= 0x0301
c.getInvocation().setLangDefaults(clang::IK_OpenCL);
#else
--
1.8.1.5
More information about the mesa-stable
mailing list