configure: support lsan as toolchain

This commit is contained in:
James Darnley 2022-12-07 17:04:55 +01:00
parent a69b08790b
commit f1f41d6ff5

5
configure vendored
View File

@ -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