<div dir="ltr"><div>Hi,</div><div><br></div><div>Apologies in advance if this is the wrong place to ask this…</div><div><br></div><div>tldr: On OS X 10.10, toggled on <span style="color:rgb(0,0,0);white-space:pre-wrap">LLVM_ENABLE_LIBCXX, and now clang can't build itself because it doesn't know where the libc++ headers are.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div>I'm trying to get started using libTooling, primarily via the clang tutorial featuring ASTMatchers[1]. I followed the instructions there, but when I run ccmake, to update CMAKE_CXX_COMPILER after building, I start to run into troubles.</div><div><br></div><div>First, after typing 'c' to configure, I get an error about missing libstdc++4.7. I toggled on <font color="#000000"><span style="white-space:pre-wrap">LLVM_ENABLE_LIBCXX as per this thread[2], and this did allow ccmake to configure without errors. But once I ran ninja after this step, the build failed because the libc++ headers could not be found. I am on OS X 10.10, the system libc++ headers are in /usr/include/c++/<a href="http://4.2.1.">4.2.1.</a> I tried a few different things to explicitly have the system c++ header directory added to the includes list, but they things I tried did not work.</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">Thanks!</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">Dave</span></font></div><div><br></div>1. <a href="http://clang.llvm.org/docs/LibASTMatchersTutorial.html" target="_blank">http://clang.llvm.org/docs/LibASTMatchersTutorial.html</a><div>2. <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-March/035822.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-March/035822.html</a></div><div><br></div></div>