| Index: tools/gn/command_refs.cc
|
| diff --git a/tools/gn/command_refs.cc b/tools/gn/command_refs.cc
|
| index fcd824a6842ea72bef034ec308055d02d8a17664..64969b9e80dcbddfe9fef4e2da7f929fec2bc5cb 100644
|
| --- a/tools/gn/command_refs.cc
|
| +++ b/tools/gn/command_refs.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/command_line.h"
|
| #include "base/files/file_util.h"
|
| #include "base/strings/string_split.h"
|
| +#include "base/strings/string_util.h"
|
| #include "tools/gn/commands.h"
|
| #include "tools/gn/deps_iterator.h"
|
| #include "tools/gn/filesystem_utils.h"
|
| @@ -143,6 +144,9 @@ bool TargetContainsFile(const Target* target, const SourceFile& file) {
|
| for (const auto& cur_file : target->data()) {
|
| if (cur_file == file.value())
|
| return true;
|
| + if (cur_file.back() == '/' &&
|
| + base::StartsWith(file.value(), cur_file, base::CompareCase::SENSITIVE))
|
| + return true;
|
| }
|
|
|
| if (target->action_values().script().value() == file.value())
|
|
|