tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: USE_LANGUAGES and wrappers



On Wed, Jul 19, 2023 at 08:20:13AM -0400, Greg Troxel wrote:
>   1) Stop having USE_LANGUAGES=c++17 change wrappers.  Or perhaps do
>   step 2 and warn for now.
> 
>   2) Add a variable FORCE_CXX_VERSION which if e.g. set to c++17 causes
>   "--std=c++17" to be added by the wrappers.  Basically what
>   USE_LANGUAGES=c++17 does now.

Yeah, I have wanted this for ages.

The implemention is easy, just CWRAPPERS_APPEND.cxx+= -std=XX in gcc.mk
and clang.mk. Other compilers definitely have other ways of
accomplishing the same.

"cwrappers should always default to oldest version of the C/C++ standard
unless -std=XX is given" is not quite as trivial but should also be doable.




Home | Main Index | Thread Index | Old Index