From: Michel Dänzer Date: Thu, 28 Apr 2016 03:57:03 +0000 (+0900) Subject: clover: Fix build against clang SVN >= r267772 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=860210ccfc0a90a4635fc930cd323bc426db5991;p=mesa.git clover: Fix build against clang SVN >= r267772 (Re-pushing previous fix for clang SVN r265359, which was reverted in the meantime) Signed-off-by: Michel Dänzer Reviewed-by: Tom Stellard --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index fb757886381..96f6a485a40 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -206,6 +206,9 @@ namespace { // http://www.llvm.org/bugs/show_bug.cgi?id=19735 c.getDiagnosticOpts().ShowCarets = false; c.getInvocation().setLangDefaults(c.getLangOpts(), clang::IK_OpenCL, +#if HAVE_LLVM >= 0x0309 + llvm::Triple(triple), +#endif clang::LangStandard::lang_opencl11); c.createDiagnostics( new clang::TextDiagnosticPrinter(