[x265] [PATCH] cmake: switch to c++11 for Clang and GCC

Stephen Hutchinson qyot27 at gmail.com
Tue Apr 25 16:43:15 CEST 2017


On 4/25/2017 4:25 AM, Mateusz Brzostek wrote:
> After tests with GCC from 4.8 to 8.0 I think it is OK to change to c++11 from c++98 (for -DENABLE_DYNAMIC_HDR10=ON and OFF).
>
> Selur (Hybrid author) wrote that for Clang it should be c++11 instead of gnu++11, so we can set for Clang c++11, for GCC gnu++11.
>
> Please review.
>

Something that's been on my mind since the discussion around
the -std= being set started is: is x265 even using the GNU
extensions that require setting gnu++* variants as the -std?
Or is it just being set like that because it's GCC?

If GCC-specific stuff isn't being used, or if Clang is tolerant
enough of any GNU extensions that are used, you could just set
it as -std=c++11 for both Clang and GCC and not have to branch.


More information about the x265-devel mailing list