mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
configure: support gcc-4.8 instrumentation
Since version 4.8 gcc sports asan and tsan integration that can be leveraged when hunting bugs. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
ba13606ca6
commit
0ba49d28a1
10
configure
vendored
10
configure
vendored
@ -2214,6 +2214,16 @@ case "$toolchain" in
|
||||
add_cflags -fsanitize=thread -pie
|
||||
add_ldflags -fsanitize=thread -pie
|
||||
;;
|
||||
gcc-asan)
|
||||
cc_default="gcc"
|
||||
add_cflags -fsanitize=address
|
||||
add_ldflags -fsanitize=address
|
||||
;;
|
||||
gcc-tsan)
|
||||
cc_default="gcc"
|
||||
add_cflags -fsanitize=thread -pie -fPIC
|
||||
add_ldflags -fsanitize=thread -pie -fPIC
|
||||
;;
|
||||
valgrind-massif)
|
||||
target_exec_default="valgrind"
|
||||
target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"
|
||||
|
Loading…
Reference in New Issue
Block a user