This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Prefer C++14 over C++11 when building libc++experimental.
ClosedPublic

Authored by EricWF on May 5 2016, 1:29 PM.

Details

Summary

Currently libc++experimental builds with C++11. This patch changes that to C++14 when supported by the compiler. Although nothing currently requires C++14 the upcoming <experimental/memory_resource> implementation would benefit from it. [1]

Note that libc++.so continues to build with C++11 and is unaffected by this change.

[1] <experimental/memory_resource> provides global resources which must exist for the entire lifetime of the program. In order to ensure that a global resource can be used during program termination there destructors must never be invoked. The only way to do this, while also allowing "constant initialization", is to use a C++14 union.

Diff Detail

Repository
rL LLVM

Event Timeline

EricWF updated this revision to Diff 56333.May 5 2016, 1:29 PM
EricWF retitled this revision from to [libcxx] Prefer C++14 over C++11 when building libc++experimental..
EricWF updated this object.
EricWF added a reviewer: mclow.lists.
EricWF added a subscriber: cfe-commits.
pete added a subscriber: pete.May 9 2016, 4:15 PM
This revision was automatically updated to reflect the committed changes.