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:
parent
a7db718ffb
commit
d3c6e31bf3
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue