]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow users to override CSTD/CXXSTD on a per-prog basis
authorngie <ngie@FreeBSD.org>
Fri, 29 Mar 2019 18:49:08 +0000 (18:49 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 29 Mar 2019 18:49:08 +0000 (18:49 +0000)
commit0b0688a91cb07b0e2d710e03ade00807223b6527
tree22e8924bf0eae4d597df29297ed7d3533c32f5a9
parent777d26ce523b9dcb049eb991ceb2c7d6363ac8a8
Allow users to override CSTD/CXXSTD on a per-prog basis

The current logic for CSTD/CXXSTD requires homogenity as far as the
supported C/C++ standards, which is a sensible default. However, when
dealing with differing versions of C++, some code may compile with C++11, but
not C++17 (for instance). So in order to avoid having people convert over their
code to the new standard, give the users the ability to specify the standard on
a per-program basis.

This will allow a user to override the supporting standard for a set of
programs, mixing C++11 with C++14 (for instance).

Reviewed by: asomers
Apprved by: emaste (mentor)
MFC after: 1 month
MFC with: r345708
Differential Revision: https://reviews.freebsd.org/D19738
lib/libc/tests/stdlib/Makefile
share/mk/bsd.progs.mk