[Mesa-dev] [PATCH 1/1] clover: Fix build after clang r348827

Jan Vesely jan.vesely at rutgers.edu
Sun Dec 16 11:45:56 UTC 2018


On Sun, 2018-12-16 at 10:36 +0100, Kai Wasserbäch wrote:
> Jan Vesely wrote on 13.12.18 22:17:
> > CodeGenOptions were moved to Basic.
> > 
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109039
> > Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> 
> Since this is the same as my patch
> (<https://patchwork.freedesktop.org/patch/268295/>) but older than mine, you can
> have my:
> 
>  Reviewed-by: Kai Wasserbäch <kai at dev.carbon-project.org>

Thank you both,
Jan

> 
> Cheers,
> Kai
> 
> 
> > ---
> >  src/gallium/state_trackers/clover/llvm/compat.hpp | 7 ++++++-
> >  1 file changed, 6 insertions(+), 1 deletion(-)
> > 
> > diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp
> > index 975012cbda..b91cb95a29 100644
> > --- a/src/gallium/state_trackers/clover/llvm/compat.hpp
> > +++ b/src/gallium/state_trackers/clover/llvm/compat.hpp
> > @@ -58,9 +58,14 @@
> >  #include <llvm/Analysis/TargetLibraryInfo.h>
> >  
> >  #include <clang/Basic/TargetInfo.h>
> > -#include <clang/Frontend/CodeGenOptions.h>
> >  #include <clang/Frontend/CompilerInstance.h>
> >  
> > +#if HAVE_LLVM >= 0x0800
> > +#include <clang/Basic/CodeGenOptions.h>
> > +#else
> > +#include <clang/Frontend/CodeGenOptions.h>
> > +#endif
> > +
> >  namespace clover {
> >     namespace llvm {
> >        namespace compat {
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181216/b757f1b1/attachment.sig>


More information about the mesa-dev mailing list