Skip to content

Commit 7957aa3

Browse files
author
Julian LALU
committed
Fix Clang sanitizer
1 parent e10a10d commit 7957aa3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sanitizer.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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})

0 commit comments

Comments
 (0)