<div dir="ltr">Oh, nice so this was actually done by Kuba to fix sanitizer unittests:<div><div><br></div><div>      "echo '#include <iostream>' | ${COMPILER_RT_TEST_COMPILER} -E -x c++ - > /dev/null"</div><div>      "if [ $? != 0 ] "</div><div>      "  then echo"</div><div>      "  echo 'Your just-built clang cannot find C++ headers, which are needed to build and run compiler-rt tests.'"</div><div>      "  echo 'You should copy or symlink your system C++ headers into ${LLVM_BINARY_DIR}/include/c++'"</div><div>      "  if [ -d $(dirname $(dirname $(xcrun -f clang)))/include/c++ ]"</div><div>      "    then echo 'e.g. with:'"</div><div>      "    echo '  cp -r' $(dirname $(dirname $(xcrun -f clang)))/include/c++ '${LLVM_BINARY_DIR}/include/'"</div><div>      "  elif [ -d $(dirname $(dirname $(xcrun -f clang)))/lib/c++ ]"</div><div>      "    then echo 'e.g. with:'"</div><div>      "    echo '  cp -r' $(dirname $(dirname $(xcrun -f clang)))/lib/c++ '${LLVM_BINARY_DIR}/include/'"</div><div>      "  fi"</div><div>      "  echo 'This can also be fixed by checking out the libcxx project from <a href="http://llvm.org">llvm.org</a> and installing the headers'"</div><div>      "  echo 'into your build directory:'"</div><div>      "  echo '  cd ${LLVM_SOURCE_DIR}/projects && svn co <a href="http://llvm.org/svn/llvm-project/libcxx/trunk">http://llvm.org/svn/llvm-project/libcxx/trunk</a> libcxx'"</div><div>      "  echo '  cd ${LLVM_BINARY_DIR} && make -C ${LLVM_SOURCE_DIR}/projects/libcxx installheaders HEADER_DIR=${LLVM_BINARY_DIR}/include'"</div><div>      "  echo"</div><div>      "  false"</div><div>      "fi"</div></div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><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">What I mean is that we should either fix the tests, or describe precisely the scenario in which libcxx+libcxxabi is needed.... because it's not always needed. I suspect it's just needed when testing the sanitizers (but I might be wrong).<br></blockquote><div><br></div><div>What if I s/mandatory on OS X, optional otherwise/required to run tests on OS X/ ?</div><div><br></div><div>-Y</div></div></div></div>