Page MenuHomeFreeBSD

Allow users to override CSTD/CXXSTD on a per-prog basis
ClosedPublic

Authored by ngie on Mar 28 2019, 5:40 PM.
Tags
None
Referenced Files
F136986991: D19738.id55549.diff
Thu, Nov 20, 10:22 PM
F136985235: D19738.id55604.diff
Thu, Nov 20, 10:14 PM
F136985228: D19738.id55547.diff
Thu, Nov 20, 10:14 PM
F136985144: D19738.id.diff
Thu, Nov 20, 10:13 PM
F136983132: D19738.diff
Thu, Nov 20, 10:04 PM
Unknown Object (File)
Tue, Nov 18, 11:52 PM
Unknown Object (File)
Mon, Nov 17, 6:39 PM
Unknown Object (File)
Mon, Nov 17, 2:09 PM
Subscribers

Details

Summary

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).

MFC after: 2 months
MFC with: r345706

Test Plan

buildworld

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23353
Build 22379: arc lint + arc unit