Skip to content

Commit

Permalink
build: deactivate ASAN on Windows (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland authored Dec 5, 2024
1 parent 23f1b4b commit 71014c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cpp-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: build zenoh-pico
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~/local -DZ_FEATURE_UNSTABLE_API=${{ matrix.unstable }} -DZ_FEATURE_LIVELINESS=1 -DASAN=ON
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/local -DZ_FEATURE_UNSTABLE_API=${{ matrix.unstable }} -DZ_FEATURE_LIVELINESS=1 -DASAN=ON
cmake --build . --target install --config Release
- name: clone zenoh-cpp
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

if(ASAN)
if(ASAN AND !MSVC)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
endif()
Expand Down

0 comments on commit 71014c3

Please sign in to comment.