1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

build: Support building using clang-usan and disable-optimization

Clang Undefined Behaviour Sanitizer seems to make non-constant constant
expressions, making the compilation fail when they are used within
inline assembly if no optimization is requested.

Add -O1 to the cflags to hide the misbehaviour.

Bug-Id: 683
This commit is contained in:
Katerina Barone-Adesi 2014-05-16 18:07:34 +02:00 committed by Luca Barbato
parent 7c377f0e74
commit 4d25c2bc76

2
configure vendored
View File

@ -2443,7 +2443,7 @@ case "$toolchain" in
;;
clang-usan)
cc_default="clang"
add_cflags -fsanitize=undefined
add_cflags -fsanitize=undefined -O1
add_ldflags -fsanitize=undefined
;;
gcc-asan)