configure: support lsan as toolchain

pull/388/head
James Darnley 2 years ago
parent a69b08790b
commit f1f41d6ff5
  1. 5
      configure

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…
Cancel
Save