<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 29, 2014 at 12:19 AM, C Bergström <span dir="ltr"><<a href="mailto:cbergstrom@pathscale.com" target="_blank">cbergstrom@pathscale.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">#2 The attached patch allows libc++ to use libcxxrt on OSX.</div></div></blockquote><div><br></div><div>The CMake part has a bug:</div><div><br></div><div><div>diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt</div><div>index cd8553c..d489c90 100644</div><div>--- a/lib/CMakeLists.txt</div><div>+++ b/lib/CMakeLists.txt</div><div>@@ -53,7 +53,7 @@ target_link_libraries(cxx ${libraries})</div><div> append_if(compile_flags LIBCXX_HAS_FPIC_FLAG -fPIC)</div><div> append_if(link_flags LIBCXX_HAS_NODEFAULTLIBS_FLAG -nodefaultlibs)</div><div> </div><div>-if ( APPLE )</div><div>+if ( APPLE AND "${LIBCXX_CXX_ABI}" STREQUAL "libcxxaib" )</div></div><div><br></div><div>This should be "libcxxabi"</div><div><br></div><div>Other than that (and needing to test this on OS X with libc++abi to make sure the typo fix works) the CMake side looks fine. Sadly, the exception.cpp code is stuff I have never rightly understood well enough to help with. Hopefully Marshall or someone can help there.</div><div><br></div><div>-Chandler</div></div></div></div>