summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-04-02 13:22:26 +0000
committerNico Weber <nicolasweber@gmx.de>2018-04-02 13:22:26 +0000
commitdce9a72d9871fb5bf8094c89306be46dfbffd65e (patch)
tree77d0c66ece677075290db2600a4ac017051ec9fb /llvm/cmake/config-ix.cmake
parent6d48493817ebef6f69bb2b138e098b192d45ce1d (diff)
downloadbcm5719-llvm-dce9a72d9871fb5bf8094c89306be46dfbffd65e.tar.gz
bcm5719-llvm-dce9a72d9871fb5bf8094c89306be46dfbffd65e.zip
Assume existence of inttypes.h and stdint.h in DataTypes.h.
These should exist in all toolchains LLVM supports nowadays. Enables making DataTypes.h a regular header instead of a .h.cmake file and allows deleting a bunch of cmake goop (which should also speed up cmake configure time a bit). All the code this removes is 9+ years old. https://reviews.llvm.org/D45155 llvm-svn: 328970
Diffstat (limited to 'llvm/cmake/config-ix.cmake')
-rw-r--r--llvm/cmake/config-ix.cmake34
1 files changed, 0 insertions, 34 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 34ad356a2a1..e988fea8905 100644
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -25,30 +25,11 @@ if( CMAKE_SYSTEM MATCHES "FreeBSD-9.2-RELEASE" AND
list(APPEND CMAKE_REQUIRED_LIBRARIES "cxxrt")
endif()
-# Helper macros and functions
-macro(add_cxx_include result files)
- set(${result} "")
- foreach (file_name ${files})
- set(${result} "${${result}}#include<${file_name}>\n")
- endforeach()
-endmacro(add_cxx_include files result)
-
-function(check_type_exists type files variable)
- add_cxx_include(includes "${files}")
- CHECK_CXX_SOURCE_COMPILES("
- ${includes} ${type} typeVar;
- int main() {
- return 0;
- }
- " ${variable})
-endfunction()
-
# include checks
check_include_file(dirent.h HAVE_DIRENT_H)
check_include_file(dlfcn.h HAVE_DLFCN_H)
check_include_file(errno.h HAVE_ERRNO_H)
check_include_file(fcntl.h HAVE_FCNTL_H)
-check_include_file(inttypes.h HAVE_INTTYPES_H)
check_include_file(link.h HAVE_LINK_H)
check_include_file(malloc.h HAVE_MALLOC_H)
check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)
@@ -57,7 +38,6 @@ if( NOT PURE_WINDOWS )
check_include_file(pthread.h HAVE_PTHREAD_H)
endif()
check_include_file(signal.h HAVE_SIGNAL_H)
-check_include_file(stdint.h HAVE_STDINT_H)
check_include_file(sys/dir.h HAVE_SYS_DIR_H)
check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)
check_include_file(sys/mman.h HAVE_SYS_MMAN_H)
@@ -289,20 +269,6 @@ elseif(PTHREAD_IN_LIBC)
check_library_exists(c pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)
endif()
-set(headers "sys/types.h")
-
-if (HAVE_INTTYPES_H)
- set(headers ${headers} "inttypes.h")
-endif()
-
-if (HAVE_STDINT_H)
- set(headers ${headers} "stdint.h")
-endif()
-
-check_type_exists(int64_t "${headers}" HAVE_INT64_T)
-check_type_exists(uint64_t "${headers}" HAVE_UINT64_T)
-check_type_exists(u_int64_t "${headers}" HAVE_U_INT64_T)
-
# available programs checks
function(llvm_find_program name)
string(TOUPPER ${name} NAME)
OpenPOWER on IntegriCloud