llvm.org GIT mirror llvm / 0fd37a0
[MinGW] Enable large file for mingw-w64 64-bit mingw doesn't define _FILE_OFFSET_BITS=64 by default. Differential Revision: https://reviews.llvm.org/D53569 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345131 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 11 months ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
221221 # MinGW warns if -fvisibility-inlines-hidden is used.
222222 check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
223223 append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility-inlines-hidden" CMAKE_CXX_FLAGS)
224 endif()
225
226 if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND MINGW)
227 add_definitions( -D_FILE_OFFSET_BITS=64 )
224228 endif()
225229
226230 if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )