Skip to content

Commit

Permalink
Add HAS_UBSAN flag to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Oct 16, 2023
1 parent da5bba1 commit 64d564f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/gf16/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ endif()
if(SLIM_GF16)
add_compile_definitions(PARPAR_SLIM_GF16=1)
endif()
if(ENABLE_SANITIZE)
add_compile_definitions(HAS_UBSAN=1)
endif()

set(GF16_DIR ../../gf16)
set(SRC_DIR ../../src)
Expand Down
3 changes: 3 additions & 0 deletions test/hasher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ endif()
if(ENABLE_MULTIMD5)
add_compile_definitions(PARPAR_ENABLE_HASHER_MULTIMD5=1)
endif()
if(ENABLE_SANITIZE)
add_compile_definitions(HAS_UBSAN=1)
endif()

set(HASHER_DIR ../../hasher)
set(SRC_DIR ../../src)
Expand Down

0 comments on commit 64d564f

Please sign in to comment.