Skip to content

Commit

Permalink
Keep assets on in fuzz-testing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 3, 2024
1 parent a2b7a97 commit 6e816ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: weekly
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 6e816ec

Please sign in to comment.