summaryrefslogtreecommitdiff
path: root/network/uTox/asan_off.diff
blob: f6c3ff662aa0a7c07b340c70c02ad6582ab5207c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- CMakeLists.txt.orig	2017-08-23 06:19:33.000000000 +1000
+++ CMakeLists.txt	2017-12-15 16:07:38.446002260 +1000
@@ -73,6 +73,11 @@
     set(ASAN_DEFAULT ON)
 endif()
 
+# ASAN causes uTox to be slower so do no use it for release builds
+if (CMAKE_BUILD_TYPE MATCHES "Release")
+   set(ASAN_DEFAULT OFF)
+endif()
+
 ###########
 # Options #
 ###########