[PATCH] D53569: [MinGW] Enable large file for mingw-w64
Peiyuan Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 23 06:28:26 PDT 2018
SquallATF created this revision.
Herald added subscribers: llvm-commits, mgorny.
64-bit mingw not define _FILE_OFFSET_BITS=64 default.
Repository:
rL LLVM
https://reviews.llvm.org/D53569
Files:
cmake/modules/HandleLLVMOptions.cmake
Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -224,6 +224,10 @@
append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility-inlines-hidden" CMAKE_CXX_FLAGS)
endif()
+if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND MINGW)
+ add_definitions( -D_FILE_OFFSET_BITS=64 )
+endif()
+
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
# TODO: support other platforms and toolchains.
if( LLVM_BUILD_32_BITS )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53569.170627.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181023/b2137d89/attachment.bin>
More information about the llvm-commits
mailing list