configure: support lsan as toolchain
This commit is contained in:
parent
a69b08790b
commit
f1f41d6ff5
5
configure
vendored
5
configure
vendored
@ -4317,6 +4317,11 @@ case "$toolchain" in
|
||||
add_cflags -fsanitize=address
|
||||
add_ldflags -fsanitize=address
|
||||
;;
|
||||
*-lsan)
|
||||
cc_default="${toolchain%-lsan}"
|
||||
add_cflags -fsanitize=leak
|
||||
add_ldflags -fsanitize=leak
|
||||
;;
|
||||
*-msan)
|
||||
cc_default="${toolchain%-msan}"
|
||||
add_cflags -fsanitize=memory -fsanitize-memory-track-origins
|
||||
|
Loading…
Reference in New Issue
Block a user