Skip to content

Commit

Permalink
Merge pull request #685 from d235j/fix-sanitize
Browse files Browse the repository at this point in the history
Fix build with SANITIZE
  • Loading branch information
azonenberg authored Feb 8, 2024
2 parents fbc773f + 73480cc commit e9a64cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ if(NOT CMAKE_BUILD_TYPE)
endif()

if(SANITIZE)
add_compile_options(-fsanitize=memory -fsanitize=thread -fsanitize=address -fsanitize=undefined -fsanitize=cfi -flto)
add_compile_options(-fsanitize=address -fsanitize=undefined)
add_link_options(-fsanitize=address -fsanitize=undefined)
endif()

if(WIN32)
Expand Down

0 comments on commit e9a64cc

Please sign in to comment.