Skip to content

Commit 6ae8483

Browse files
authored
CMake: fix sanitizer builds missing link flags (#1809)
1 parent 0fd9b08 commit 6ae8483

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ if (USE_ADDRESS_SANITIZER)
171171

172172
add_link_options(
173173
$<$<CXX_COMPILER_ID:Clang>:-shared-libasan>
174+
-fsanitize=address
175+
-fsanitize=leak
176+
-fsanitize=undefined
174177
)
175178
endif()
176179

0 commit comments

Comments
 (0)