[FFmpeg-cvslog] build: support asan and tsan toolchain shortcuts

Luca Barbato git at videolan.org
Tue Oct 16 13:24:28 CEST 2012


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Oct 14 07:54:22 2012 +0200| [0fbb62a8e6c6f0b431f736eed1da2cc649253f27] | committer: Luca Barbato

build: support asan and tsan toolchain shortcuts

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0fbb62a8e6c6f0b431f736eed1da2cc649253f27
---

 configure |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure b/configure
index 8652639..870b6ad 100755
--- a/configure
+++ b/configure
@@ -2048,6 +2048,16 @@ ranlib="${cross_prefix}${ranlib}"
 sysinclude_default="${sysroot}/usr/include"
 
 case "$toolchain" in
+    clang-asan)
+        cc_default="clang"
+        add_cflags  -faddress-sanitizer
+        add_ldflags -faddress-sanitizer
+    ;;
+    clang-tsan)
+        cc_default="clang"
+        add_cflags  -fthread-sanitizer
+        add_ldflags -fthread-sanitizer
+    ;;
     msvc)
         cc_default="c99wrap cl"
         ld_default="c99wrap link"



More information about the ffmpeg-cvslog mailing list