From c77991ca33491d5bd6e7bf81c4463032c7de8310 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 15 Apr 2021 14:09:40 +0200 Subject: [PATCH] test/pts: enable ASAN in CMake build --- test/pts/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/pts/CMakeLists.txt b/test/pts/CMakeLists.txt index 998bfec8e..6916d2135 100644 --- a/test/pts/CMakeLists.txt +++ b/test/pts/CMakeLists.txt @@ -164,6 +164,10 @@ set(SOURCES ) list(SORT SOURCES) +# Enable ASAN +add_compile_options( -g -fsanitize=address) +add_link_options( -fsanitize=address) + # create static lib add_library(btstack STATIC ${SOURCES})