[Mesa-dev] [PATCH] gallium/swr: confine c++11 flag to swr driver

Emil Velikov emil.l.velikov at gmail.com
Fri Apr 15 17:34:03 UTC 2016


On 15 April 2016 at 00:30, Tim Rowley <timothy.o.rowley at intel.com> wrote:

> --- a/src/gallium/drivers/swr/Makefile.am
> +++ b/src/gallium/drivers/swr/Makefile.am
> @@ -22,7 +22,7 @@
>  include Makefile.sources
>  include $(top_srcdir)/src/gallium/Automake.inc
>
> -AM_CXXFLAGS = $(GALLIUM_DRIVER_CFLAGS)
> +AM_CXXFLAGS = $(GALLIUM_DRIVER_CFLAGS) -std=c++11
>
>  noinst_LTLIBRARIES = libmesaswr.la
>
> @@ -31,6 +31,7 @@ libmesaswr_la_SOURCES = $(LOADER_SOURCES)
>  COMMON_CXXFLAGS = \
>         $(GALLIUM_DRIVER_CFLAGS) \
>         $(LLVM_CFLAGS) \
> +       -std=c++11 \

As others have pointed out things will go interesting as we get
miss-match between LLVM and SWR. But let's worry about that when we
get there.

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

-Emil


More information about the mesa-dev mailing list