Skip to content

Commit e9c43b8

Browse files
committed
cmake : add status messages [no ci]
1 parent d076b6a commit e9c43b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,22 @@ llama_option_depr(WARNING LLAMA_CANN GGML_CANN)
116116

117117
if (NOT MSVC)
118118
if (LLAMA_SANITIZE_THREAD)
119+
message(STATUS "Using -fsanitize=thread")
120+
119121
add_compile_options(-fsanitize=thread)
120122
link_libraries (-fsanitize=thread)
121123
endif()
122124

123125
if (LLAMA_SANITIZE_ADDRESS)
126+
message(STATUS "Using -fsanitize=address")
127+
124128
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
125129
link_libraries (-fsanitize=address)
126130
endif()
127131

128132
if (LLAMA_SANITIZE_UNDEFINED)
133+
message(STATUS "Using -fsanitize=undefined")
134+
129135
add_compile_options(-fsanitize=undefined)
130136
link_libraries (-fsanitize=undefined)
131137
endif()

0 commit comments

Comments
 (0)