From 1a9b1a0ad3e1e98a307c8a99211ebc3a94b4ac3e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 29 Dec 2019 10:12:23 -0800 Subject: 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. --- cmake/CheckSanitizer.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake') 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. +# Copyright 2019 Staysail Systems, Inc. # Copyright 2017 Capitar IT Group BV # # 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 () -- cgit v1.2.3-70-g09d2