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

Unified Diff: tools/gn/command_analyze.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. Created 3 years, 6 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 | « tools/gn/builder_unittest.cc ('k') | tools/gn/config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_analyze.cc
diff --git a/tools/gn/command_analyze.cc b/tools/gn/command_analyze.cc
index 6fd582356097f55d8f3326fe36c977b25a565422..944341805a59527a506df96eeeb0772547e06479 100644
--- a/tools/gn/command_analyze.cc
+++ b/tools/gn/command_analyze.cc
@@ -110,10 +110,11 @@ int RunAnalyze(const std::vector<std::string>& args) {
if (!setup->DoSetup(args[0], false) || !setup->Run())
return 1;
- Analyzer analyzer(setup->builder());
-
Err err;
- std::string output = Analyzer(setup->builder()).Analyze(input, &err);
+ Analyzer analyzer(setup->builder(),
+ setup->build_settings().build_config_file(),
+ setup->dotfile_input_file()->name());
+ std::string output = analyzer.Analyze(input, &err);
if (err.has_error()) {
err.PrintToStdout();
return 1;
« no previous file with comments | « tools/gn/builder_unittest.cc ('k') | tools/gn/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698