summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-03 18:48:56 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-03 18:48:56 +0000
commitdb04b39dad59fa1ae2a15a56ac74ec1628881c65 (patch)
tree9ff1ba19c4b0498bf74e8e6c7d877773b41331bc /cmake
parentd253545c17d5ed70fa134c02bfca9c3f85402473 (diff)
downloadllvm-db04b39dad59fa1ae2a15a56ac74ec1628881c65.tar.gz
llvm-db04b39dad59fa1ae2a15a56ac74ec1628881c65.tar.bz2
llvm-db04b39dad59fa1ae2a15a56ac74ec1628881c65.tar.xz
Support/FileSystem: Fix MinGW build. It doesn't have _chsize_s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 3fd0c45675..27f2964038 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -108,6 +108,9 @@ 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_STRERROR_S)
check_symbol_exists(setenv stdlib.h HAVE_SETENV)
+if ( LLVM_ON_WIN32 )
+ check_symbol_exists(_chsize_s io.h HAVE__CHSIZE_S)
+endif()
check_symbol_exists(__GLIBC__ stdio.h LLVM_USING_GLIBC)
if( LLVM_USING_GLIBC )