[PATCH] D53569: [MinGW] Enable large file for mingw-w64

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 24 05:24:24 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL345131: [MinGW] Enable large file for mingw-w64 (authored by mstorsjo, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D53569

Files:
  llvm/trunk/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/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.170853.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/b0d49816/attachment.bin>


More information about the llvm-commits mailing list