<div dir="ltr">Your workaround should work, but it shouldn't be this difficult.<div><br></div><div>Take a look at <a href="https://clang.llvm.org/doxygen/InitHeaderSearch_8cpp_source.html">https://clang.llvm.org/doxygen/InitHeaderSearch_8cpp_source.html</a>, lines 456-479. Since OSX 10.9, /usr/include/c++/v1 just doesn't exist. Clang should instead use /Library/Developer/CommandLineTools/usr/include/c++/v1 and/or the XCode .app for libc++. Unless anyone disagrees, I'm going to file this as a bug report.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 26, 2017 at 5:21 PM, Jacob Carlborg via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2017-06-26 22:58, scott constable via cfe-dev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I just found the rest of the thread here:<br>
<a href="https://lists.apple.com/archives/xcode-users/2017/Jan/msg00089.html" rel="noreferrer" target="_blank">https://lists.apple.com/archiv<wbr>es/xcode-users/2017/Jan/msg000<wbr>89.html</a>. The<br>
upshot is that C++ headers are no longer installed to /usr/include on<br>
MacOS. When you install the Xcode command-line tools, the C++ headers<br>
are stored in /Library/Developer/CommandLine<wbr>Tools/usr/include/c++/v1. So<br>
libtools built on MacOS should look here instead of /usr/include/c++/v1.<br>
How can this be done?<br>
</blockquote>
<br></span>
I'm not that familiar with libtools, I've only used the C API in libclang. In libclang you call the clang_parseTranslationUnit function and pass in the command line arguments that were passed to your application. It's possible to add an additional include search path before calling clang_parseTranslationUnit by adding ["-I", "/Library/Developer/CommandLin<wbr>eTools/usr/include/c++/v1"] to the command line arguments array. I'm not sure it's possible to do the same using libtools.<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
/Jacob Carlborg<br>
<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>