summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKaterina Barone-Adesi <katerinab@gmail.com>2014-05-16 18:07:34 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-05-16 19:58:34 +0200
commit4d25c2bc76f0a708c2ba470b6bfeb547efe37115 (patch)
treeaf01324d291fe79d9968a08cf4aa6e8885067102 /configure
parent7c377f0e74de8ab57f6baa64f3ec197c82104764 (diff)
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 6f84dfab0f..74a4df1221 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)