For example this allows --toolchain=clang-asan-usan.
Signed-off-by: Kacper Michajłow <[email protected]>
---
configure | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 10dafae8e2..17a83dd873 100755
--- a/configure
+++ b/configure
@@ -4638,14 +4638,23 @@ add_sanitizer_flags(){
esac
}
+add_sanitizers(){
+ IFS=-
+ set -- $*
+ unset IFS
+ for sanitizer; do
+ add_sanitizer_flags "$sanitizer"
+ done
+}
+
case "$toolchain" in
clang-*)
- add_sanitizer_flags "${toolchain#clang-}"
+ add_sanitizers "${toolchain#clang-}"
cc_default="clang"
cxx_default="clang++"
;;
gcc-*)
- add_sanitizer_flags "${toolchain#gcc-}"
+ add_sanitizers "${toolchain#gcc-}"
cc_default="gcc"
cxx_default="g++"
# In case of tsan with gcc, PIC has to be enabled
--
2.50.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".