diff options
author | James Zern <jzern@google.com> | 2019-04-01 12:03:22 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2019-04-01 12:40:53 -0700 |
commit | e59f78b4842ee46fe5c0d64a47212a0ea5472585 (patch) | |
tree | 963d067bb43e14ad6a3d3197841b1f908a99e562 /tools | |
parent | efab8f3d2eb8f851f3c96577e8cae48d90e2692a (diff) | |
download | libvpx-e59f78b4842ee46fe5c0d64a47212a0ea5472585.tar.gz libvpx-e59f78b4842ee46fe5c0d64a47212a0ea5472585.tar.bz2 libvpx-e59f78b4842ee46fe5c0d64a47212a0ea5472585.zip |
tool/set_analyzer_env: disable implicit-integer-truncation
with clang-7 this causes additional warnings in x86 intrinsics and
elsewhere. disabling for now to unblock new changes.
BUG=webm:1615
Change-Id: Ide9cacee5547ed432f980f6804e1414f32639121
Diffstat (limited to 'tools')
-rw-r--r-- | tools/set_analyzer_env.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/set_analyzer_env.sh b/tools/set_analyzer_env.sh index 8ee0c4fe5..4bdbba652 100644 --- a/tools/set_analyzer_env.sh +++ b/tools/set_analyzer_env.sh @@ -82,6 +82,17 @@ if [ "${sanitizer}" = "cfi" ]; then export AR="llvm-ar" fi +# TODO(http://crbug.com/webm/1615): -fsanitize=implicit-integer-truncation +# causes conversion warnings in many of the x86 intrinsics and elsewhere. +if [ "${sanitizer}" = "integer" ]; then + major_version=$(clang --version | head -n 1 \ + | grep -o -E "[[:digit:]]\.[[:digit:]]\.[[:digit:]]" | cut -f1 -d.) + if [ ${major_version} -ge 7 ]; then + cflags="${cflags} -fno-sanitize=implicit-integer-truncation" + ldflags="${ldflags} -fno-sanitize=implicit-integer-truncation" + fi +fi + set -x export CC="clang" export CXX="clang++" |