| Index: tools/gn/command_format.cc
|
| diff --git a/tools/gn/command_format.cc b/tools/gn/command_format.cc
|
| index b1a7ee3cdb36a410073e8c2e06fe9500c136a809..ff1d9b0f19550d25c53a4dbd5822d8088fec8244 100644
|
| --- a/tools/gn/command_format.cc
|
| +++ b/tools/gn/command_format.cc
|
| @@ -707,7 +707,8 @@ int RunFormat(const std::vector<std::string>& args) {
|
| Setup setup;
|
| SourceDir source_dir =
|
| SourceDirForCurrentDirectory(setup.build_settings().root_path());
|
| - SourceFile file = source_dir.ResolveRelativeFile(args[0]);
|
| + SourceFile file = source_dir.ResolveRelativeFile(args[0],
|
| + setup.build_settings().root_path());
|
|
|
| std::string output_string;
|
| if (FormatFileToString(&setup, file, dump_tree, &output_string)) {
|
|
|