mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +00:00
Meta+Ladybird: Add some extra definitions for Haiku
This commit is contained in:
parent
fa4357b7ea
commit
e345085329
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…
Add table
Add a link
Reference in a new issue