Skip to content

Commit 93dda94

Browse files
committed
uses toolchain install for asan
1 parent be8d1ff commit 93dda94

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
with:
2626
python-version: '3.13'
2727

28+
# setup toolchain for asan
29+
- name: Setup MSVC dev command prompt
30+
uses: TheMrMilchmann/setup-msvc-dev@v3
31+
with:
32+
arch: x64
33+
toolset: 14.38.33130
34+
if: contains(matrix.os, 'windows' )
35+
2836
- name: Configure CMake
2937
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3038
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type

tests/proptests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ target_compile_options(rapidcheck_tests PRIVATE
2525
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
2626
target_link_libraries(rapidcheck_tests PUBLIC -fsanitize=address,undefined)
2727
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC")
28-
target_compile_definitions(rapidcheck_tests PRIVATE "_DISABLE_VECTOR_ANNOTATION" "_DISABLE_STRING_ANNOTATION")
28+
# disable annotations or possible annotation mismatch with librapidcheck. It is not really required by the vdf parser
29+
target_compile_definitions(rapidcheck_tests PRIVATE "_DISABLE_VECTOR_ANNOTATION" "_DISABLE_STRING_ANNOTATION")
2930
target_compile_options(rapidcheck_tests PRIVATE /fsanitize=address)
3031
endif()
3132

0 commit comments

Comments
 (0)