aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-11 23:19:15 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-11 23:19:15 +1100
commit76f3ef1d7c2b4393a8e8b402deb924e606448d27 (patch)
treea291bec0544f007536a41ec1f590338aee1163e9 /CMakeLists.txt
parent77e2be172718878b38999efc247ce7571435fcc8 (diff)
More cleanup, fix lifetime and mutex issues
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 09daa4c..021f56b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,3 +39,22 @@ add_custom_command(TARGET ${LIBRARY_NAME} POST_BUILD
"${CMAKE_CURRENT_SOURCE_DIR}/low_latency_layer.json"
"${OUTPUT_DIR}/"
)
+
+set(SANITIZE_FLAGS
+ -fsanitize=address,undefined,leak
+ -fno-omit-frame-pointer
+ -fno-optimize-sibling-calls
+ -fno-sanitize-recover=all
+ -fsanitize-address-use-after-scope
+)
+
+target_compile_options(${LIBRARY_NAME} PRIVATE
+ #${SANITIZE_FLAGS}
+ -g3
+ -O1
+ -D_GLIBCXX_ASSERTIONS
+)
+
+target_link_options(${LIBRARY_NAME} PRIVATE
+ #${SANITIZE_FLAGS}
+)