Skip to content

Commit

Permalink
🐛 Fix asan on windows (use shared asan lib) (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
kammce authored Dec 9, 2024
1 parent 8aa6a34 commit 388ca12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmake/build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ")
Expand Down

0 comments on commit 388ca12

Please sign in to comment.