From 0d01f5ab5c32b3fba227fcad97f4e83afc79de53 Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Mon, 9 Dec 2024 08:33:20 -0700 Subject: [PATCH] :bug: Fix asan on windows (use shared asan lib) --- cmake/build.cmake | 3 +-- conanfile.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/build.cmake b/cmake/build.cmake index 7c2ee72..599ddc1 100644 --- a/cmake/build.cmake +++ b/cmake/build.cmake @@ -134,7 +134,7 @@ function(libhal_unit_test) if(${ADDRESS_SANITIZER_SUPPORT}) message(STATUS "${LIBHAL_TITLE} Address Sanitizer available! Using it for tests!") target_compile_options(unit_test PRIVATE -fsanitize=address) - target_link_options(unit_test PRIVATE -fsanitize=address) + target_link_options(unit_test PRIVATE -fsanitize=address -shared-libsan) else() message(STATUS "${LIBHAL_TITLE} Address Sanitizer not supported!") endif(${ADDRESS_SANITIZER_SUPPORT}) @@ -144,7 +144,6 @@ function(libhal_unit_test) target_include_directories(unit_test PUBLIC include tests src ${UNIT_TEST_ARGS_INCLUDES}) - target_compile_options(unit_test PRIVATE --coverage -fprofile-arcs diff --git a/conanfile.py b/conanfile.py index 7fe2841..6a52a56 100644 --- a/conanfile.py +++ b/conanfile.py @@ -23,7 +23,7 @@ class libhal_cmake_util_conan(ConanFile): name = "libhal-cmake-util" - version = "4.1.5" + version = "4.1.6" license = "Apache-2.0" homepage = "https://libhal.github.io/libhal-armcortex" description = ("A collection of CMake scripts for ARM Cortex ")