1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:17:35 +00:00

CMake: Build lagom with -D_FILE_OFFSET_BITS=64 on Linux

32-bit glibc limits off_t to 32 bits without this definition, which
makes working with large files rather difficult.
This commit is contained in:
implicitfield 2024-01-16 14:56:23 +04:00 committed by Andrew Kaster
parent a7db718ffb
commit d3c6e31bf3

View file

@ -8,6 +8,10 @@ if (NOT WIN32)
add_compile_options(-fPIC)
endif()
if (LINUX)
add_compile_options(-D_FILE_OFFSET_BITS=64)
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options(-ggdb3)
add_compile_options(-Og)