[llvm] r328979 - Remove stro(u?)ll() config checks. Those were needed pre-MSVC2013, but we require 2015 nowadays.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 2 07:36:34 PDT 2018
Author: nico
Date: Mon Apr 2 07:36:34 2018
New Revision: 328979
URL: http://llvm.org/viewvc/llvm-project?rev=328979&view=rev
Log:
Remove stro(u?)ll() config checks. Those were needed pre-MSVC2013, but we require 2015 nowadays.
Modified:
llvm/trunk/cmake/config-ix.cmake
llvm/trunk/include/llvm/Config/config.h.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=328979&r1=328978&r2=328979&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Mon Apr 2 07:36:34 2018
@@ -209,7 +209,6 @@ check_symbol_exists(posix_spawn spawn.h
check_symbol_exists(pread unistd.h HAVE_PREAD)
check_symbol_exists(realpath stdlib.h HAVE_REALPATH)
check_symbol_exists(sbrk unistd.h HAVE_SBRK)
-check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)
check_symbol_exists(strerror string.h HAVE_STRERROR)
check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)
check_symbol_exists(strerror_s string.h HAVE_DECL_STRERROR_S)
@@ -443,16 +442,6 @@ if( MINGW )
# include(CheckLibraryExists)
endif( MINGW )
-if (NOT HAVE_STRTOLL)
- # Use _strtoi64 if strtoll is not available.
- check_symbol_exists(_strtoi64 stdlib.h have_strtoi64)
- if (have_strtoi64)
- set(HAVE_STRTOLL 1)
- set(strtoll "_strtoi64")
- set(strtoull "_strtoui64")
- endif ()
-endif ()
-
if( MSVC )
set(SHLIBEXT ".lib")
set(stricmp "_stricmp")
Modified: llvm/trunk/include/llvm/Config/config.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=328979&r1=328978&r2=328979&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Config/config.h.cmake (original)
+++ llvm/trunk/include/llvm/Config/config.h.cmake Mon Apr 2 07:36:34 2018
@@ -191,9 +191,6 @@
/* Define to 1 if you have the `strerror_r' function. */
#cmakedefine HAVE_STRERROR_R ${HAVE_STRERROR_R}
-/* Define to 1 if you have the `strtoll' function. */
-#cmakedefine HAVE_STRTOLL ${HAVE_STRTOLL}
-
/* Define to 1 if you have the `sysconf' function. */
#cmakedefine HAVE_SYSCONF ${HAVE_SYSCONF}
@@ -386,12 +383,6 @@
/* Define as the return type of signal handlers (`int' or `void'). */
#cmakedefine RETSIGTYPE ${RETSIGTYPE}
-/* Define to a function replacing strtoll */
-#cmakedefine strtoll ${strtoll}
-
-/* Define to a function implementing strtoull */
-#cmakedefine strtoull ${strtoull}
-
/* Define to a function implementing stricmp */
#cmakedefine stricmp ${stricmp}
More information about the llvm-commits
mailing list