File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,14 @@ function(enable_sanitizer project_name lib_name)
3939 set (SANTIZE_COMPILE_ARGS
4040 -fsanitize=address
4141 -fsanitize=undefined
42- -fsanitize=leak
43- -fsanitize=memory
4442 -fsanitize=safe-stack
4543 -fno-sanitize-recover=all
4644 -fsanitize=float-divide-by-zero
4745 -fsanitize=float-cast-overflow
4846 -fsanitize=alignment
4947 $<$<CONFIG:Release>:-fno-omit-frame-pointer -g>
5048 $<$<CONFIG:MinSizeRel>:-fno-omit-frame-pointer -g>
51- $<$<CONFIG:RelWithDebInfo>:-fno-omit-frame-pointer>
49+ $<$<CONFIG:RelWithDebInfo>:-fno-omit-frame-pointer -g >
5250 )
5351 target_compile_options (${project_name} PRIVATE ${SANTIZE_COMPILE_ARGS} )
5452 target_link_options (${project_name} PRIVATE ${SANTIZE_COMPILE_ARGS} )
@@ -67,7 +65,7 @@ function(enable_sanitizer project_name lib_name)
6765 -fsanitize=alignment
6866 $<$<CONFIG:Release>:-fno-omit-frame-pointer -g>
6967 $<$<CONFIG:MinSizeRel>:-fno-omit-frame-pointer -g>
70- $<$<CONFIG:RelWithDebInfo>:-fno-omit-frame-pointer >
68+ $<$<CONFIG:RelWithDebInfo>:-fno-omit-frame-pointe -g >
7169 )
7270 target_compile_options (${project_name} PRIVATE ${SANTIZE_COMPILE_ARGS} )
7371 target_link_options (${project_name} PRIVATE ${SANTIZE_COMPILE_ARGS} )
You can’t perform that action at this time.
0 commit comments