From 71014c343390c218b69c9df96986fe6c1e4e66f3 Mon Sep 17 00:00:00 2001 From: Jean-Roland Gosse Date: Thu, 5 Dec 2024 16:09:01 +0100 Subject: [PATCH] build: deactivate ASAN on Windows (#31) --- .github/workflows/cpp-check.yaml | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp-check.yaml b/.github/workflows/cpp-check.yaml index 671be2b9c..1e5a57e41 100644 --- a/.github/workflows/cpp-check.yaml +++ b/.github/workflows/cpp-check.yaml @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c7947301..d986b9975 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()