diff options
author | Rui Ueyama <ruiu@google.com> | 2014-10-27 08:16:18 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-10-27 08:16:18 +0000 |
commit | 292fb6d7be7301623bbd2d19ab1306bc16e3e68c (patch) | |
tree | 39ce5dc3c72c75ac0c4c9a70f63f5b54e22fd97a /llvm/cmake/config-ix.cmake | |
parent | 59c74b225a3dcd20517eb7cbeeb9e2149e702c0e (diff) | |
download | bcm5719-llvm-292fb6d7be7301623bbd2d19ab1306bc16e3e68c.tar.gz bcm5719-llvm-292fb6d7be7301623bbd2d19ab1306bc16e3e68c.zip |
Re-commit r220667.
C++ source given to check_cxx_source_compile should have define "main".
llvm-svn: 220669
Diffstat (limited to 'llvm/cmake/config-ix.cmake')
-rwxr-xr-x | llvm/cmake/config-ix.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 8139d57ff83..5204f6c77ae 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -42,7 +42,6 @@ function(check_type_exists type files variable) endfunction() # include checks -check_include_file_cxx(cxxabi.h HAVE_CXXABI_H) check_include_file(dirent.h HAVE_DIRENT_H) check_include_file(dlfcn.h HAVE_DLFCN_H) check_include_file(errno.h HAVE_ERRNO_H) @@ -81,6 +80,13 @@ check_symbol_exists(FE_INEXACT "fenv.h" HAVE_DECL_FE_INEXACT) check_include_file(mach/mach.h HAVE_MACH_MACH_H) check_include_file(mach-o/dyld.h HAVE_MACH_O_DYLD_H) +# size_t must be defined before including cxxabi.h on FreeBSD 10.0. +check_cxx_source_compiles(" +#include <stddef.h> +#include <cxxabi.h> +int main() { return 0; } +" HAVE_CXXABI_H) + # library checks if( NOT PURE_WINDOWS ) check_library_exists(pthread pthread_create "" HAVE_LIBPTHREAD) |