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; |