llvm.org GIT mirror llvm / 5473af6
CMake: Let LLVM_BUILD_32_BITS aware of large file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317402 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 1 year, 11 months ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
231231 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
232232 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32")
233233 set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -m32")
234
235 # FIXME: CMAKE_SIZEOF_VOID_P is still 8
236 add_definitions(-D_LARGEFILE_SOURCE)
237 add_definitions(-D_FILE_OFFSET_BITS=64)
234238 endif( LLVM_BUILD_32_BITS )
235239 endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
236240
241245 set(LLVM_FORCE_SMALLFILE_FOR_ANDROID TRUE)
242246 endif()
243247 if( CMAKE_SIZEOF_VOID_P EQUAL 4 AND NOT LLVM_FORCE_SMALLFILE_FOR_ANDROID)
248 # FIXME: It isn't handled in LLVM_BUILD_32_BITS.
244249 add_definitions( -D_LARGEFILE_SOURCE )
245250 add_definitions( -D_FILE_OFFSET_BITS=64 )
246251 endif()