From 6e816ec2afaf16b9061ddd35cecaac60ba436f82 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 2 Oct 2024 22:50:55 -0700 Subject: [PATCH] Keep assets on in fuzz-testing builds --- .github/dependabot.yml | 2 +- CMakeLists.txt | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 253bcb76..ca79ca5b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,4 +3,4 @@ updates: - package-ecosystem: github-actions directory: / schedule: - interval: daily + interval: weekly diff --git a/CMakeLists.txt b/CMakeLists.txt index 9dbf976d..9013825a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -447,11 +447,15 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") target_compile_options(${PROJECT_NAME} PRIVATE "/Qspectre") endif() - if(BUILD_FUZZING - AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.32) - AND (NOT WINDOWS_STORE)) - target_compile_options(${PROJECT_NAME} PRIVATE ${ASAN_SWITCHES}) - target_link_libraries(${PROJECT_NAME} PRIVATE ${ASAN_LIBS}) + + if(BUILD_FUZZING AND (NOT WINDOWS_STORE)) + string(REPLACE "/DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}) + string(REPLACE "/DNDEBUG" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}) + + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.32) + target_compile_options(${PROJECT_NAME} PRIVATE ${ASAN_SWITCHES}) + target_link_libraries(${PROJECT_NAME} PRIVATE ${ASAN_LIBS}) + endif() endif() endif()