mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +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: 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")
|
set(LINKER_FLAGS "${LINKER_FLAGS} -fsanitize=undefined")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_COMPILETIME_FORMAT_CHECK)
|
||||||
|
add_compile_definitions(ENABLE_COMPILETIME_FORMAT_CHECK)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (ENABLE_LAGOM_MOLD)
|
if (ENABLE_LAGOM_MOLD)
|
||||||
add_link_options(-fuse-ld=mold)
|
add_link_options(-fuse-ld=mold)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue