diff --git a/test/gf16/CMakeLists.txt b/test/gf16/CMakeLists.txt index c7a212c..2778b5b 100644 --- a/test/gf16/CMakeLists.txt +++ b/test/gf16/CMakeLists.txt @@ -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) diff --git a/test/hasher/CMakeLists.txt b/test/hasher/CMakeLists.txt index 5811f78..08e5d65 100644 --- a/test/hasher/CMakeLists.txt +++ b/test/hasher/CMakeLists.txt @@ -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)