mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
Merge commit 'b1ee8eec849f17fce2f411a297de9cbf2edaeb3a'
* commit 'b1ee8eec849f17fce2f411a297de9cbf2edaeb3a': configure: Add basic valgrind-memcheck support Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
4451be5ce1
8
configure
vendored
8
configure
vendored
@ -2504,6 +2504,10 @@ case "$toolchain" in
|
||||
add_cflags -fsanitize=thread -pie
|
||||
add_ldflags -fsanitize=thread -pie
|
||||
;;
|
||||
valgrind-memcheck)
|
||||
target_exec_default="valgrind"
|
||||
target_exec_args="--track-origins=yes --leak-check=full"
|
||||
;;
|
||||
msvc)
|
||||
cc_default="c99wrap cl"
|
||||
ld_default="c99wrap link"
|
||||
@ -2520,7 +2524,7 @@ case "$toolchain" in
|
||||
;;
|
||||
esac
|
||||
|
||||
set_default arch cc cxx pkg_config strip sysinclude target_os yasmexe
|
||||
set_default arch cc cxx pkg_config strip sysinclude target_exec target_os yasmexe
|
||||
enabled cross_compile || host_cc_default=$cc
|
||||
set_default host_cc
|
||||
|
||||
@ -4550,7 +4554,7 @@ HOSTCC_DEPFLAGS=$HOSTCC_DEPFLAGS
|
||||
HOSTCC_C=$HOSTCC_C
|
||||
HOSTCC_O=$HOSTCC_O
|
||||
HOSTLD_O=$HOSTLD_O
|
||||
TARGET_EXEC=$target_exec
|
||||
TARGET_EXEC=$target_exec $target_exec_args
|
||||
TARGET_PATH=$target_path
|
||||
LIBS-ffplay=$sdl_libs
|
||||
CFLAGS-ffplay=$sdl_cflags
|
||||
|
@ -604,6 +604,18 @@ You can use the command @code{make lcov-reset} to reset the coverage
|
||||
measurements. You will need to rerun @code{make lcov} after running a
|
||||
new test.
|
||||
|
||||
@subsection Using Valgrind
|
||||
|
||||
The configure script provides a shortcut for using valgrind to spot bugs
|
||||
related to memory handling. Just add the option
|
||||
@code{--toolchain=valgrind-memcheck} to your configure line, and
|
||||
reasonable defaults will be set for running FATE under the supervision
|
||||
of the @strong{memcheck} tool of the valgrind suite.
|
||||
|
||||
In case you need finer control over how valgrind is invoked, use the
|
||||
@code{--target-exec='valgrind <your_custom_valgrind_options>} option in
|
||||
your configure line instead.
|
||||
|
||||
@anchor{Release process}
|
||||
@section Release process
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user