Fix is to define _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64. This fix will cause llvm::sys::fs::file_size() to return correct object size.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Is this just GNU specific? BSD moved to 64-bit off_t on 32-bit platforms 20+ years ago.
It's perhaps no-op, but it might be noted in the commit message what platforms are supposed to be improved.
Comment Actions
Can you please move this check into HandleLLVMOptions.cmake? By putting it into a module that is vended as part of LLVM's packaging then LLVM subprojects can have consistent settings when building out-of-tree.
This would enable @zturner's request to remove the duplicated code from LLDB.
Comment Actions
Hi Nitesh,
this commit broke clang-cmake-mips. Can you investigate?
http://lab.llvm.org:8011/builders/clang-cmake-mips/builds/3189
Thanks,
Simon