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()