From 4d25c2bc76f0a708c2ba470b6bfeb547efe37115 Mon Sep 17 00:00:00 2001 From: Katerina Barone-Adesi Date: Fri, 16 May 2014 18:07:34 +0200 Subject: [PATCH] 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 6f84dfab0ff..74a4df12213 100755 --- a/configure +++ b/configure @@ -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) -- 2.39.2