Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index d9d205fb5e35fbbd2e7f1a2afcc27c7d3ade178c..aae3bac64c53879dbc5c8ded90a962b7ff5d1623 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -959,6 +959,15 @@ config("default_warnings") { |
# TODO(thakis): Enable this, crbug.com/507717 |
"-Wno-shift-negative-value", |
] |
+ |
+ if (exec_script("//tools/clang/scripts/update.py", |
+ [ "--print-revision" ], |
+ "trim string") != "266460-1") { |
+ cflags += [ |
+ # TODO(thakis): https://crbug.com/604888 |
+ "-Wno-undefined-var-template", |
+ ] |
+ } |
} |
} |
} |