mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
Meta+Ladybird: Add some extra definitions for Haiku
This commit is contained in:
parent
fa4357b7ea
commit
e345085329
Notes:
sideshowbarker
2024-07-19 16:52:13 +09:00
Author: https://github.com/ghost Commit: https://github.com/SerenityOS/serenity/commit/e3450853292 Pull-request: https://github.com/SerenityOS/serenity/pull/20808 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/diversys
2 changed files with 14 additions and 0 deletions
|
@ -45,6 +45,13 @@ if (ENABLE_UNDEFINED_SANITIZER)
|
|||
add_link_options(-fsanitize=undefined)
|
||||
endif()
|
||||
|
||||
if (HAIKU)
|
||||
# Haiku needs some extra compile definitions to make important stuff in its headers available.
|
||||
add_compile_definitions(_DEFAULT_SOURCE)
|
||||
add_compile_definitions(_GNU_SOURCE)
|
||||
add_compile_definitions(__USE_GNU)
|
||||
endif()
|
||||
|
||||
# Lagom
|
||||
# FIXME: PROJECT_IS_TOP_LEVEL with CMake 3.21+
|
||||
set(LADYBIRD_IS_TOP_LEVEL FALSE)
|
||||
|
|
|
@ -112,6 +112,13 @@ if (ENABLE_COMPILETIME_FORMAT_CHECK)
|
|||
add_compile_definitions(ENABLE_COMPILETIME_FORMAT_CHECK)
|
||||
endif()
|
||||
|
||||
if (HAIKU)
|
||||
# Haiku needs some extra compile definitions to make important stuff in its headers available.
|
||||
add_compile_definitions(_DEFAULT_SOURCE)
|
||||
add_compile_definitions(_GNU_SOURCE)
|
||||
add_compile_definitions(__USE_GNU)
|
||||
endif()
|
||||
|
||||
if (ENABLE_FUZZERS)
|
||||
add_compile_options(-fno-omit-frame-pointer)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue