<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 7, 2015 at 9:17 AM, Kuba Brecka <span dir="ltr"><<a href="mailto:jbrecka@apple.com" target="_blank">jbrecka@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 07 Sep 2015, at 17:21, Nico Weber <<a href="mailto:thakis@chromium.org">thakis@chromium.org</a>> wrote:<br>
><br>
> libcxx is needed to run compiler-rt tests, but it shouldn't be needed to run clang's tests. And to _use_ your self-built compiler, you need to add `-isysroot $(xcrun -show-sdk-path)` to the compile flags to let the compiler find C headers anyway, which also makes it find the libc++ headers.<br>
<br>
</span>No, it doesn’t:<br>
<br>
   $ clang++ a.cpp  # System version.<br>
   $ clang++ a.cpp -isysroot $(xcrun --show-sdk-path)  # System version.<br>
   $ ./clang++ ~/test/cpp101.cpp  # Self-built version.<br>
       a.cpp:1:10: fatal error: 'iostream' file not found<br>
   $ ./clang++ a.cpp -isysroot $(xcrun --show-sdk-path)  # Self-built version.<br>
       a.cpp:1:10: fatal error: 'iostream' file not found<br></blockquote></div><br></div><div class="gmail_extra">Then this patch looks fine :-) Not sure if libcxxabi is needed though.</div></div>