mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Meta: Support enabling compile-time format string checking on Lagom
This commit is contained in:
parent
eed0c32357
commit
00d8e221f3
Notes:
sideshowbarker
2024-07-16 21:51:02 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/00d8e221f3 Pull-request: https://github.com/SerenityOS/serenity/pull/19823
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ if (ENABLE_UNDEFINED_SANITIZER)
|
|||
set(LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=undefined")
|
||||
endif()
|
||||
|
||||
if (ENABLE_COMPILETIME_FORMAT_CHECK)
|
||||
add_compile_definitions(ENABLE_COMPILETIME_FORMAT_CHECK)
|
||||
endif()
|
||||
|
||||
if (ENABLE_LAGOM_MOLD)
|
||||
add_link_options(-fuse-ld=mold)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue