Page MenuHomePhabricator

[Services] Force c++17 usage with cxx builds
AbandonedPublic

Authored by jon on Oct 10 2022, 2:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 8:15 PM
Unknown Object (File)
Nov 17 2024, 10:43 AM
Unknown Object (File)
Nov 17 2024, 9:45 AM
Unknown Object (File)
Nov 14 2024, 5:57 PM
Unknown Object (File)
Oct 26 2024, 9:41 PM
Unknown Object (File)
Oct 26 2024, 9:41 PM
Unknown Object (File)
Oct 26 2024, 9:37 PM
Unknown Object (File)
Oct 13 2024, 9:44 PM
Subscribers

Details

Summary

Before we can use the system C compiler, we have to force c++17 usage
for cxx builds. cxx's flag_if_supported does not get correctly passed
to the C compiler invocation. This is also needed because clang defaults to
C++03 unless otherwise specified.

Nix's clang compiler wasn't affected by this, as it would default to GCC12
behavior of using a more recent version.

Test Plan

Tunnelbroker nix gate passes

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage