We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e841d7 commit 09ed60fCopy full SHA for 09ed60f
CMakeLists.txt
@@ -39,12 +39,18 @@ add_compile_options(-Wwrite-strings)
39
add_compile_options(-fno-exceptions)
40
41
option(ENABLE_ADDRESS_SANITIZER "Enable address sanitizer testing in gcc/clang" OFF)
42
+option(ENABLE_UNDEFINED_SANITIZER "Enable undefined behavior sanitizer testing in gcc/clang" OFF)
43
44
if (ENABLE_ADDRESS_SANITIZER)
45
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
46
add_link_options(-fsanitize=address)
47
endif()
48
49
+if (ENABLE_UNDEFINED_SANITIZER)
50
+ add_compile_options(-fsanitize=undefined -fno-omit-frame-pointer)
51
+ add_link_options(-fsanitize=undefined)
52
+endif()
53
+
54
include (FetchContent)
55
include (cmake/FetchLagom.cmake)
56
0 commit comments