Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: build/toolchain/gcc_toolchain.gni

Issue 2664063004: Add GN assert to prevent GOMA from being used with static analyzer. (Closed)
Patch Set: Mac changes Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/gcc_toolchain.gni
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni
index 6102c8dd91edb56d65979c723d6d8af0306a2f23..b31980668d89732523e9765f83e2e24f7caf1a4d 100644
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -489,6 +489,10 @@ template("clang_toolchain") {
ld = cxx
if (use_clang_static_analyzer) {
+ # Static analysis isn't supported under GOMA. See crbug.com/687245
+ # for progress on this issue.
+ assert(!use_goma, "'use_clang_static_analyzer' cannot be used with GOMA.")
+
# Call "ccc-analyzer" or "c++-analyzer" instead of directly calling Clang.
# |wrapper_tool| sets the environment variables which are read by the
# analyzer tools.
« no previous file with comments | « no previous file | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698