diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-07-26 17:43:12 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2018-07-26 17:43:12 -0700 |
commit | ff7cff7268086059cdec56f2c9f2b9e75d930395 (patch) | |
tree | e2b466b59d8d46f682ad2b74f0ee0776908ae8bc | |
parent | 9f65ef8cd9774224537e327b21f4f9aea1e0d5f5 (diff) | |
download | build_soong-ff7cff7268086059cdec56f2c9f2b9e75d930395.tar.gz build_soong-ff7cff7268086059cdec56f2c9f2b9e75d930395.tar.bz2 build_soong-ff7cff7268086059cdec56f2c9f2b9e75d930395.zip |
Do not pass -flto dependent flags to clang-tidy.
Bug: 111885396
Test: run with WITH_TIDY=1
Change-Id: I92468491cdc5894d1197f6c1631e2073c6e7c4fa
-rw-r--r-- | cc/config/tidy.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/config/tidy.go b/cc/config/tidy.go index 079cf256..3d1a0a0a 100644 --- a/cc/config/tidy.go +++ b/cc/config/tidy.go @@ -22,11 +22,13 @@ import ( // clang-tidy doesn't recognize every flag that clang does. This is unlikely to // be a complete list, but we can populate this with the ones we know to avoid // issues with clang-diagnostic-unused-command-line-argument. -// b/111885396: -flto affected header include directory; -fsanitize needs -flto. +// b/111885396: -flto affected header include directory; +// -fsanitize and -fwhole-program-vtables need -flto. var ClangTidyUnknownCflags = sorted([]string{ "-Wa,%", "-flto", "-fsanitize=%", + "-fwhole-program-vtables", }) func init() { |