mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Build: Allow setting DBGLN_NO_COMPILETIME_FORMAT_CHECK via CMake flag
This commit is contained in:
parent
20765da2a4
commit
1cec5f3d4c
Notes:
sideshowbarker
2024-07-18 22:30:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1cec5f3d4cc
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue