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)
Mon, Nov 11, 12:30 PM
Unknown Object (File)
Fri, Nov 8, 4:05 AM
Unknown Object (File)
Sat, Oct 26, 2:11 AM
Unknown Object (File)
Wed, Oct 23, 9:59 AM
Unknown Object (File)
Oct 19 2024, 1:47 AM
Unknown Object (File)
Oct 19 2024, 1:47 AM
Unknown Object (File)
Oct 19 2024, 1:47 AM
Unknown Object (File)
Oct 19 2024, 1:46 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.