This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by phosek on Feb 9 2017, 4:46 PM.

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 9 2017, 4:46 PM
phosek added a comment.Feb 9 2017, 4:47 PM

This is a resubmit of D29573, in the previous version I forgot to add -nostdinc++ to CMAKE_CXX_FLAGS which caused a build breakage because the host C++ headers collided with the libc++ ones on some platforms.

beanz accepted this revision.Feb 14 2017, 1:22 PM

LGTM!

This revision is now accepted and ready to land.Feb 14 2017, 1:22 PM
This revision was automatically updated to reflect the committed changes.