Meta: Support enabling compile-time format string checking on Lagom

This commit is contained in:
Timothy Flynn 2023-07-05 15:01:56 -04:00 committed by Andreas Kling
parent eed0c32357
commit 00d8e221f3
Notes: sideshowbarker 2024-07-16 21:51:02 +09:00

View file

@ -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()