[FFmpeg-cvslog] configure: support lsan as toolchain
James Darnley
git at videolan.org
Tue Dec 20 16:17:07 EET 2022
ffmpeg | branch: master | James Darnley <jdarnley at obe.tv> | Wed Dec 7 17:04:55 2022 +0100| [f1f41d6ff5fdfc993e69972c074584efa56012ee] | committer: James Darnley
configure: support lsan as toolchain
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f1f41d6ff5fdfc993e69972c074584efa56012ee
---
configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure b/configure
index 2180ebb4f1..f08cdab3d1 100755
--- a/configure
+++ b/configure
@@ -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
More information about the ffmpeg-cvslog
mailing list