diff options
| author | Martin Storsjo <martin@martin.st> | 2018-10-24 12:22:12 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-10-24 12:22:12 +0000 |
| commit | c4a995c8e05bd63932677ee30e4f4cfd6623eaff (patch) | |
| tree | 9a0f22879421bd637e9f24324092b84e90ecf33b | |
| parent | da11b85606f532a1b4aac96d5f9c92eded60e568 (diff) | |
| download | bcm5719-llvm-c4a995c8e05bd63932677ee30e4f4cfd6623eaff.tar.gz bcm5719-llvm-c4a995c8e05bd63932677ee30e4f4cfd6623eaff.zip | |
[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
llvm-svn: 345131
| -rw-r--r-- | llvm/cmake/modules/HandleLLVMOptions.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index 27875781d22..05db1b076a1 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -224,6 +224,10 @@ if(NOT WIN32 AND NOT CYGWIN) 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 ) |

