[Mesa-dev] [PATCH v5 1/3] configure+mesa/st: check for -std=c++11 support and enable mesa/st/test accordingly

Emil Velikov emil.l.velikov at gmail.com
Thu Oct 26 16:15:17 UTC 2017


On 18 October 2017 at 16:05, Gert Wollny <gw.fossdev at gmail.com> wrote:
> Add a check that tests whether the c++ compiler supports c++11, either by default,
> by adding the compiler flag -std=c++11, or by adding a compiler flag that the user
> has specified via the environment variable CXX11_CXXFLAGS.
>
> The test only does a very shallow check of c++11 support, i.e. it tests whether
> the define  __cplusplus >= 201103L to confirm language support by the compiler,
> and it checks whether the header <tuple> is available to test the availability
> of the c++11 standard library.
>
> A make file conditional HAVE_STD_CXX11 is provided that is used in this patch to
> to enable the tests in mesa/st if C++11 support is available.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102665

Patch 1/3 is
Acked-by: Emil Velikov <emil.velikov at collabora.com>

Patches 2/3 and 3/3 are
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

Gert, I'll push these in a day or two. Please continue to keep an eye
open for related bugs.

Thanks
Emil


More information about the mesa-dev mailing list