mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03: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
Notes:
sideshowbarker
2024-07-16 22:18:54 +09:00
Author: https://github.com/implicitfield Commit: https://github.com/SerenityOS/serenity/commit/d3c6e31bf3 Pull-request: https://github.com/SerenityOS/serenity/pull/22810 Reviewed-by: https://github.com/ADKaster ✅
@ -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…
Reference in New Issue
Block a user