diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-16 17:06:05 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-16 17:06:05 +0200 |
| commit | b156a9654ff3379b8b40e7b03bb832924ba4665e (patch) | |
| tree | 6a63c6851b477c4c0c1217679e0e98e8c0029358 | |
| parent | 3229862dd4cbfa93638a4d16ed86ec2fda5d38a6 (diff) | |
build: add asan enable status flag
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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() |
