mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03: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
@ -136,6 +136,10 @@ add_compile_definitions(DEBUG SANITIZE_PTRS)
|
|||||||
set(CMAKE_CXX_FLAGS_STATIC "${CMAKE_CXX_FLAGS} -static")
|
set(CMAKE_CXX_FLAGS_STATIC "${CMAKE_CXX_FLAGS} -static")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pie -fpic")
|
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)
|
add_link_options(--sysroot ${CMAKE_BINARY_DIR}/Root)
|
||||||
|
|
||||||
include_directories(Userland/Libraries/LibC)
|
include_directories(Userland/Libraries/LibC)
|
||||||
|
Loading…
Reference in New Issue
Block a user