diff options
author | Tom Stellard <[email protected]> | 2014-05-12 16:32:29 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-06-19 10:18:26 -0400 |
commit | 0cc391f0136c1532701a04c9b2f3a4cc49f25e8c (patch) | |
tree | f78bfdf204984be8084c9667ba0f6300171c223b /src/gallium | |
parent | 93b6b1fa83a2000f7a60ca12df54c2dd808a87a8 (diff) |
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" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 82e262f2640..0148721921a 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -187,6 +187,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 |