Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdad committed Dec 30, 2023
1 parent 02b6749 commit 06a147a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/conan-windows-latest-profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ compiler.runtime=dynamic
compiler.version=193
os=Windows

[conf]
tools.build:cxxflags=["-fsanitize=address"]

tools.info.package_id:confs=["tools.build:cxxflags", "tools.build:cflags", "tools.build:exelinkflags", "tools.build:sharedlinkflags"]
# commented because a github actions bug
# with running asan https://github.com/actions/runner-images/issues/8891
#[conf]
#tools.build:cxxflags=["-fsanitize=address"]
#
#tools.info.package_id:confs=["tools.build:cxxflags", "tools.build:cflags", "tools.build:exelinkflags", #"tools.build:sharedlinkflags"]
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ project(ringbuffercoro)

option(RBC_ASAN "run with asan" OFF)

if (RBC_ASAN)
if (RBC_ASAN AND NOT WIN32)
# github actions bug about now working asan
# https://github.com/actions/runner-images/issues/8891
set(CMAKE_CXX_FLAGS -fsanitize=address)
endif()

Expand Down

0 comments on commit 06a147a

Please sign in to comment.