aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-02-19 20:20:39 +0100
committerLuca Barbato <lu_zero@gentoo.org>2014-02-20 18:58:38 +0100
commitd6a27f885b5d4cba7a82e50af423c741d2f37c3e (patch)
tree92cb4e7bfe5fa16991bc79ede41cc4c6a4fa569b
parent2b0bb69997c2416e74f41aa1400ce983bf8775c0 (diff)
downloadffmpeg-d6a27f885b5d4cba7a82e50af423c741d2f37c3e.tar.gz
configure: Add usan to the toolchain presets
clang-3.4 and gcc-4.9 have it.
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 7b7c7c3287..72cf8313a0 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"