Index: tools/gn/command_refs.cc |
diff --git a/tools/gn/command_refs.cc b/tools/gn/command_refs.cc |
index fcd824a6842ea72bef034ec308055d02d8a17664..179535075ad6eee474a338ea80b673fc93efd38e 100644 |
--- a/tools/gn/command_refs.cc |
+++ b/tools/gn/command_refs.cc |
@@ -143,6 +143,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() == '/' && |
+ !strncmp(cur_file.c_str(), file.value().c_str(), cur_file.size() - 1)) |
brettw
2016/07/20 17:52:14
How about
cur_file.back() == '/' &&
!base::StartsW
Dirk Pranke
2016/07/20 21:24:31
I figured there was some base routine for this but
|
+ return true; |
} |
if (target->action_values().script().value() == file.value()) |