[FFmpeg-cvslog] configure: Add usan to the toolchain presets
Luca Barbato
git at videolan.org
Thu Feb 20 23:48:11 CET 2014
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed Feb 19 20:20:39 2014 +0100| [d6a27f885b5d4cba7a82e50af423c741d2f37c3e] | committer: Luca Barbato
configure: Add usan to the toolchain presets
clang-3.4 and gcc-4.9 have it.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6a27f885b5d4cba7a82e50af423c741d2f37c3e
---
configure | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/configure b/configure
index 7b7c7c3..72cf831 100755
--- a/configure
+++ b/configure
@@ -2349,6 +2349,11 @@ case "$toolchain" in
add_cflags -fsanitize=thread -pie
add_ldflags -fsanitize=thread -pie
;;
+ clang-usan)
+ cc_default="clang"
+ add_cflags -fsanitize=undefined
+ add_ldflags -fsanitize=undefined
+ ;;
gcc-asan)
cc_default="gcc"
add_cflags -fsanitize=address
@@ -2359,6 +2364,11 @@ case "$toolchain" in
add_cflags -fsanitize=thread -pie -fPIC
add_ldflags -fsanitize=thread -pie -fPIC
;;
+ gcc-usan)
+ cc_default="gcc"
+ add_cflags -fsanitize=undefined
+ add_ldflags -fsanitize=undefined
+ ;;
valgrind-massif)
target_exec_default="valgrind"
target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"
More information about the ffmpeg-cvslog
mailing list