Build: Allow setting DBGLN_NO_COMPILETIME_FORMAT_CHECK via CMake flag

This commit is contained in:
Andreas Kling 2021-02-08 18:26:28 +01:00
parent 20765da2a4
commit 1cec5f3d4c
Notes: sideshowbarker 2024-07-18 22:30:06 +09:00

View file

@ -136,6 +136,10 @@ add_compile_definitions(DEBUG SANITIZE_PTRS)
set(CMAKE_CXX_FLAGS_STATIC "${CMAKE_CXX_FLAGS} -static")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pie -fpic")
if (DBGLN_NO_COMPILETIME_FORMAT_CHECK)
add_compile_definitions(DBGLN_NO_COMPILETIME_FORMAT_CHECK)
endif()
add_link_options(--sysroot ${CMAKE_BINARY_DIR}/Root)
include_directories(Userland/Libraries/LibC)