Browse Source

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
tags/n2.3
Katerina Barone-Adesi Luca Barbato 11 years ago
parent
commit
4d25c2bc76
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      configure

+ 1
- 1
configure 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)


Loading…
Cancel
Save