This is an archive of the discontinued LLVM Phabricator instance.

[libunwind][CMake] Use libc++ headers when available
ClosedPublic

Authored by phosek on Feb 15 2017, 10:15 AM.

Details

Summary

libunwind depends on C++ library headers. When building libunwind as part of LLVM and libc++ is available, use its headers.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Feb 15 2017, 10:15 AM

This is a resubmit of D29800, turned out I need to use LIBUNWIND_CXX_FLAGS rather than CMAKE_CXX_FLAGS to avoid the unused argument '-nostdinc++' error during linking.

beanz accepted this revision.Feb 15 2017, 3:01 PM

LGTM!

This revision is now accepted and ready to land.Feb 15 2017, 3:01 PM
This revision was automatically updated to reflect the committed changes.