Page MenuHomePhabricator

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

Authored by varun on Aug 25 2022, 4:03 AM.
Tags
None
Referenced Files
F3369675: D4950.diff
Mon, Nov 25, 11:09 PM
Unknown Object (File)
Mon, Nov 11, 12:30 PM
Unknown Object (File)
Fri, Nov 8, 4:05 AM
Unknown Object (File)
Oct 26 2024, 2:11 AM
Unknown Object (File)
Oct 23 2024, 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
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.