fix shutdown
This commit is contained in:
@@ -23,3 +23,20 @@ add_dependencies(CookAssets
|
||||
_internal_cook_game_assets
|
||||
_internal_cook_engine_assets
|
||||
)
|
||||
|
||||
option(ENABLE_SANITIZERS "Enable Address/Undefined sanitizers" OFF)
|
||||
|
||||
if (ENABLE_SANITIZERS AND CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
|
||||
foreach(target destrum lightkeeper)
|
||||
target_compile_options(${target} PRIVATE
|
||||
-fsanitize=address,undefined
|
||||
-fno-omit-frame-pointer
|
||||
-fno-stack-protector
|
||||
-g3
|
||||
)
|
||||
|
||||
target_link_options(${target} PRIVATE
|
||||
-fsanitize=address,undefined
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user