[llvm-bugs] [Bug 16576] Need a build system check to make sure the chosen compiler is sane

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 15 23:46:05 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=16576

Eric Christopher <echristo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Eric Christopher <echristo at gmail.com> ---
This is fixed:

dnl If CXX is Clang, check that it can find and parse C++ standard library
dnl headers.
if test "$CXX" = "clang++" ; then
  AC_MSG_CHECKING([whether clang works])
  AC_LANG_PUSH([C++])
  dnl Note that space between 'include' and '(' is required.  There's a broken
  dnl regex in aclocal that otherwise will think that we call m4's include
  dnl builtin.
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits>
#if __has_include (<cxxabi.h>)
#include <cxxabi.h>
#endif
#if __has_include (<unwind.h>)
#include <unwind.h>
#endif
]])],
[
  AC_MSG_RESULT([yes])
],
[
  AC_MSG_RESULT([no])
  AC_MSG_ERROR([Selected compiler could not find or parse C++ standard library
headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure
...])
])
  AC_LANG_POP([C++])
fi

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151016/1ae37470/attachment.html>


More information about the llvm-bugs mailing list