Page MenuHomePhabricator

[native] add c++11 flag to build
ClosedPublic

Authored by varun on Aug 25 2022, 4:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 7:12 PM
Unknown Object (File)
Fri, Nov 29, 1:07 PM
Unknown Object (File)
Fri, Nov 29, 1:05 PM
Unknown Object (File)
Mon, Nov 25, 11:09 PM
Unknown Object (File)
Nov 11 2024, 12:30 PM
Unknown Object (File)
Nov 8 2024, 4:05 AM
Unknown Object (File)
Oct 26 2024, 2:11 AM
Unknown Object (File)
Oct 23 2024, 9:59 AM
Subscribers

Details

Summary

this ensures that the compiler knows which edition of C++ to use.

Test Plan

cargo build

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Only add flag if it exists

varun requested review of this revision.Aug 25 2022, 4:14 AM

Looks reasonable based on the example here: https://docs.rs/cxx-build/latest/cxx_build/#example. Guessing we're going with C++ 11 here because it's the lowest common denominator across native?

In D4950#143596, @atul wrote:

Looks reasonable based on the example here: https://docs.rs/cxx-build/latest/cxx_build/#example. Guessing we're going with C++ 11 here because it's the lowest common denominator across native?

yeah that's right. hopefully we can bump native to C++20 and then upgrade this as well

This revision is now accepted and ready to land.Aug 25 2022, 11:13 AM

hopefully we can bump native to C++20 and then upgrade this as well

I think realistically C++ 14, but yeah anything >= 11 should be good

This revision was automatically updated to reflect the committed changes.