aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-12-29 10:12:23 -0800
committerGarrett D'Amore <garrett@damore.org>2019-12-29 10:12:23 -0800
commit1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e (patch)
tree247a13ce5bdbbba8bff80954b76057dca8eb4c24 /cmake
parentaed9697d71798d923443f3fb6297cecf89bc4218 (diff)
downloadnng-1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e.tar.gz
nng-1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e.tar.bz2
nng-1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e.zip
fixes #1065 resolver leaks work structures
This includes changes to support setting the sanitizer *correctly* (the old code CMake stuff didn't quite get it right), and addresses a number of failures in the test code found by the address sanitizer.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CheckSanitizer.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/CheckSanitizer.cmake b/cmake/CheckSanitizer.cmake
index a6b3501f..b4d4f320 100644
--- a/cmake/CheckSanitizer.cmake
+++ b/cmake/CheckSanitizer.cmake
@@ -1,5 +1,5 @@
#
-# Copyright 2018 Staysail Systems, Inc. <info@staysail.tech>
+# Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
# Copyright 2017 Capitar IT Group BV <info@capitar.com>
#
# This software is supplied under the terms of the MIT License, a
@@ -24,7 +24,7 @@ macro (CheckSanitizer)
mark_as_advanced (NNG_SANITIZER)
if (NOT NNG_SANITIZER STREQUAL "none")
- set (NNG_C_FLAG_SANITIZER "-fsanitizer=${NNG_SANITIZER}")
+ set (NNG_C_FLAG_SANITIZER "-fsanitize=${NNG_SANITIZER}")
message(STATUS "Enabling sanitizer: ${NNG_C_FLAG_SANITIZER}")
endif()
endmacro ()