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)
Sat, Mar 15, 10:18 PM
Unknown Object (File)
Sat, Mar 8, 1:05 PM
Unknown Object (File)
Sat, Mar 8, 1:05 PM
Unknown Object (File)
Sat, Mar 8, 1:05 PM
Unknown Object (File)
Sat, Mar 8, 1:04 PM
Unknown Object (File)
Sat, Mar 8, 1:00 PM
Unknown Object (File)
Feb 22 2025, 1:56 AM
Unknown Object (File)
Jan 31 2025, 1:07 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
Branch
identity-client (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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.