[PATCH] D139752: cmake: Enable 64bit off_t on 32bit glibc systems

Steven Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 11:39:06 PST 2023


srj added a comment.

In D139752#4059783 <https://reviews.llvm.org/D139752#4059783>, @srj wrote:

> `-D_FILE_OFFSET_BITS="64 -D_DEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64`

>From experimentation, it seems that its `add_compile_definitions(_FILE_OFFSET_BITS=64)` that is the culprit; commenting it out allows us to build and run correctly. (Why it's failing in this way is not at all clear to me, but then, CMake has a few quirks here and there...)

Why do we need both these definitions, BTW?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139752/new/

https://reviews.llvm.org/D139752



More information about the llvm-commits mailing list