summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitca242f2c366a02d108ae846637614800c1932fca (patch)
tree2840fa69192cf7a880adf7efe01d762ac267f4fc /llvm/cmake
parentf8da863196a173ed90c627e468d42381bf48675d (diff)
downloadbcm5719-llvm-ca242f2c366a02d108ae846637614800c1932fca.tar.gz
bcm5719-llvm-ca242f2c366a02d108ae846637614800c1932fca.zip
Support/FileSystem: Fix MinGW build. It doesn't have _chsize_s.
llvm-svn: 120826
Diffstat (limited to 'llvm/cmake')
-rwxr-xr-xllvm/cmake/config-ix.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 3fd0c456750..27f2964038b 100755
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/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 )
OpenPOWER on IntegriCloud