[PATCH][www] Mention that libcxx is necessary on OS X

Yuri Gribov via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 4 14:07:59 PDT 2015


Oh, nice so this was actually done by Kuba to fix sanitizer unittests:

      "echo '#include <iostream>' | ${COMPILER_RT_TEST_COMPILER} -E -x c++
- > /dev/null"
      "if [ $? != 0 ] "
      "  then echo"
      "  echo 'Your just-built clang cannot find C++ headers, which are
needed to build and run compiler-rt tests.'"
      "  echo 'You should copy or symlink your system C++ headers into
${LLVM_BINARY_DIR}/include/c++'"
      "  if [ -d $(dirname $(dirname $(xcrun -f clang)))/include/c++ ]"
      "    then echo 'e.g. with:'"
      "    echo '  cp -r' $(dirname $(dirname $(xcrun -f
clang)))/include/c++ '${LLVM_BINARY_DIR}/include/'"
      "  elif [ -d $(dirname $(dirname $(xcrun -f clang)))/lib/c++ ]"
      "    then echo 'e.g. with:'"
      "    echo '  cp -r' $(dirname $(dirname $(xcrun -f clang)))/lib/c++
'${LLVM_BINARY_DIR}/include/'"
      "  fi"
      "  echo 'This can also be fixed by checking out the libcxx project
from llvm.org and installing the headers'"
      "  echo 'into your build directory:'"
      "  echo '  cd ${LLVM_SOURCE_DIR}/projects && svn co
http://llvm.org/svn/llvm-project/libcxx/trunk libcxx'"
      "  echo '  cd ${LLVM_BINARY_DIR} && make -C
${LLVM_SOURCE_DIR}/projects/libcxx installheaders
HEADER_DIR=${LLVM_BINARY_DIR}/include'"
      "  echo"
      "  false"
      "fi"

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).
>

What if I s/mandatory on OS X, optional otherwise/required to run tests on
OS X/ ?

-Y
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150905/5ff8efe6/attachment-0001.html>


More information about the cfe-commits mailing list