diff options
author | Tiancong Wang <tcwang@google.com> | 2020-04-22 14:07:55 -0700 |
---|---|---|
committer | Tiancong Wang <tcwang@google.com> | 2020-04-22 22:37:36 +0000 |
commit | 3b2358092e00ab7904a873b516ac6aac832c2277 (patch) | |
tree | 5b38c1702f096b001e637cd39ebcc2e245fa9ff2 /compiler_wrapper/config.go | |
parent | 089004cd44039fd9d57fab03093a0e3a9e5d9c10 (diff) | |
download | toolchain-utils-3b2358092e00ab7904a873b516ac6aac832c2277.tar.gz |
wrapper: Temporarily disable -Wmax-tokens
As reported in crbug.com/1072209, -Wmax-tokens is causing latest
chrome fail to build. While we are blocked by Chrome uprevs, we
want to update the compiler by disabling the warning, until it's
fixed properly on upstream Chrome.
BUG=chromium:1072209
TEST=Local testing in CrOS
Change-Id: I082dd342a802e80250d0fca7c4b15afb4e972e7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2161770
Commit-Queue: Tiancong Wang <tcwang@google.com>
Tested-by: Tiancong Wang <tcwang@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'compiler_wrapper/config.go')
-rw-r--r-- | compiler_wrapper/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler_wrapper/config.go b/compiler_wrapper/config.go index fc43a29b..79cccbbc 100644 --- a/compiler_wrapper/config.go +++ b/compiler_wrapper/config.go @@ -120,6 +120,7 @@ var crosHardenedConfig = &config{ // Disable "-faddrsig" since it produces object files that strip doesn't understand, chromium:915742. // Pass "-fcommon" till the packages are fixed to work with new clang default // "-fno-common", crbug.com/1060413. + // Temporary/Backup solutions to roll compiler to r387436. FIXME(tcwang): Remove after crbug.com/1072209 is fixed. clangFlags: []string{ "-Qunused-arguments", "-grecord-gcc-switches", @@ -133,6 +134,7 @@ var crosHardenedConfig = &config{ "-fuse-ld=lld", "-Wno-final-dtor-non-final-class", "-Werror=poison-system-directories", + "-Wno-max-tokens", }, clangPostFlags: []string{ "-Wno-implicit-int-float-conversion", |