aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-10-14 07:54:22 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-10-15 18:25:35 +0200
commit0fbb62a8e6c6f0b431f736eed1da2cc649253f27 (patch)
treebe323d5f548db197abd55d99fda1b548ddc86a06 /configure
parent7e68c91e247ba20fc8a08cf5a6cf2b75984f1aeb (diff)
downloadffmpeg-0fbb62a8e6c6f0b431f736eed1da2cc649253f27.tar.gz
build: support asan and tsan toolchain shortcuts
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 86526393a5..870b6ad625 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"