From 00d8e221f3e4efd1d52ea2e2de59f4f60083cfaa Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 5 Jul 2023 15:01:56 -0400 Subject: [PATCH] Meta: Support enabling compile-time format string checking on Lagom --- Meta/Lagom/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index bb130874699..786b8fb3dbe 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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()