From b156a9654ff3379b8b40e7b03bb832924ba4665e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 16 Jul 2023 17:06:05 +0200 Subject: [PATCH] build: add asan enable status flag --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index de745527..88d2d279 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,8 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) message(STATUS "Setting debug flags") if (WITH_ASAN) + message(STATUS "Enabling ASan") + target_link_libraries(Hyprland asan) add_compile_options(-fsanitize=address) endif()