This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Use -std=c++11 if supported
ClosedPublic

Authored by beanz on Aug 29 2016, 2:53 PM.

Details

Summary

This patch adds a check for if -std=c++11 is a supported flag, and adds it to CMAKE_CXX_FLAGS if it is supported.

Diff Detail

Event Timeline

beanz updated this revision to Diff 69619.Aug 29 2016, 2:53 PM
beanz retitled this revision from to [CMake] Use -std=c++11 if supported.
beanz updated this object.
beanz added a reviewer: EricWF.
beanz added a subscriber: cfe-commits.
EricWF accepted this revision.Aug 29 2016, 3:15 PM
EricWF edited edge metadata.

LGTM. I'm surprised we don't already require C++11.

cmake/config-ix.cmake
40

Nit LIBCXXABI_HAS_STD_CXX11.

This revision is now accepted and ready to land.Aug 29 2016, 3:15 PM
This revision was automatically updated to reflect the committed changes.