llvm.org GIT mirror llvm / 2f681da
[LLVM][MIPS] Fix different definition of off_t in LLDB and LLVM. Reviewers: beanz Subscribers: jaydeep, bhushan, lldb-commits, slthakur, llvm-commits, krytarowski, emaste Differential Revision: https://reviews.llvm.org/D32125 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301171 91177308-0d34-0410-b5e6-96231b3b80d8 Nitesh Jain 2 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
220220 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -m32")
221221 endif( LLVM_BUILD_32_BITS )
222222 endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
223
224 # If building on a GNU specific 32-bit system, make sure off_t is 64 bits
225 # so that off_t can stored offset > 2GB
226 if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
227 add_definitions( -D_LARGEFILE_SOURCE )
228 add_definitions( -D_FILE_OFFSET_BITS=64 )
229 endif()
223230
224231 if( XCODE )
225232 # For Xcode enable several build settings that correspond to