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 d076b6a commit e9c43b8Copy full SHA for e9c43b8
CMakeLists.txt
@@ -116,16 +116,22 @@ llama_option_depr(WARNING LLAMA_CANN GGML_CANN)
116
117
if (NOT MSVC)
118
if (LLAMA_SANITIZE_THREAD)
119
+ message(STATUS "Using -fsanitize=thread")
120
+
121
add_compile_options(-fsanitize=thread)
122
link_libraries (-fsanitize=thread)
123
endif()
124
125
if (LLAMA_SANITIZE_ADDRESS)
126
+ message(STATUS "Using -fsanitize=address")
127
128
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
129
link_libraries (-fsanitize=address)
130
131
132
if (LLAMA_SANITIZE_UNDEFINED)
133
+ message(STATUS "Using -fsanitize=undefined")
134
135
add_compile_options(-fsanitize=undefined)
136
link_libraries (-fsanitize=undefined)
137
0 commit comments