[Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

Jose Fonseca jfonseca at vmware.com
Sun Oct 28 03:58:14 PDT 2012


We use LLVM in a few other directories. Shouldn't we be putting this a bit higher up? For example in LLVM_CXXFLAGS?

I just noticed that src/gallium/state_trackers/clover uses exceptions. So this won't fly everywhere...

Jose

----- Original Message -----
> rtti was removed from more llvm libraries.
> Thanks to d0k for the hint via IRC #llvm on irc.oftc.net
> ---
>  src/gallium/auxiliary/Makefile |    4 ++++
>  1 Datei geändert, 4 Zeilen hinzugefügt(+)
> 
> diff --git a/src/gallium/auxiliary/Makefile
> b/src/gallium/auxiliary/Makefile
> index 3ba3f9c..690b7f5 100644
> --- a/src/gallium/auxiliary/Makefile
> +++ b/src/gallium/auxiliary/Makefile
> @@ -3,6 +3,10 @@ include $(TOP)/configs/current
>  
>  LIBNAME = gallium
>  
> +ifeq ($(LLVM_VERSION),3.2)
> +	CXXFLAGS += -fno-exceptions -fno-rtti
> +endif
> +
>  # get source lists
>  include Makefile.sources
>  
> --
> 1.7.10.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>


More information about the mesa-dev mailing list