aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2026-04-08 10:22:15 -0400
committerGitHub <noreply@github.com>2026-04-08 10:22:15 -0400
commitbcc480ae7ad9266f80a2eee54d3a06bb8178868b (patch)
treee51266449357defa92404f2005eb0bea34f25a7a /CMakeLists.txt
parent5b5abcce09da3ce1cc8fab57e1571d0ff0966f7b (diff)
parent18a86918d03ccd6b34ede7c4ea67b6d794ee155f (diff)
downloadstasis-bcc480ae7ad9266f80a2eee54d3a06bb8178868b.tar.gz
Merge pull request #130 from jhunkeler/cmake-qol
Cmake QOL
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3a5576f..bd214ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,10 +8,11 @@ set(CMAKE_C_STANDARD 99)
find_package(LibXml2)
find_package(CURL)
-option(ASAN OFF)
+option(ASAN "Address Analyzer" OFF)
+set(ASAN_OPTIONS "-fsanitize=address,leak,null,undefined")
if (ASAN)
- add_compile_options(-fsanitize=address)
- add_link_options(-fsanitize=address)
+ add_compile_options(${ASAN_OPTIONS} -fno-omit-frame-pointer -g -O0)
+ add_link_options(${ASAN_OPTIONS})
endif()
pkg_check_modules(ZIP libzip)