Index: tools/gn/target.cc |
diff --git a/tools/gn/target.cc b/tools/gn/target.cc |
index 16a0ba4eb8ff65ba6fa328b9df61a22546a74321..0d275ac93584e1a77c58c2ae00099ee75b5f865b 100644 |
--- a/tools/gn/target.cc |
+++ b/tools/gn/target.cc |
@@ -552,6 +552,10 @@ void Target::CheckSourcesGenerated() const { |
CheckSourceGenerated(file); |
for (const SourceFile& file : inputs_) |
CheckSourceGenerated(file); |
+ for (size_t i = 0; i < all_libs_.size(); i++) { |
+ if (all_libs_[i].is_source_file()) |
+ CheckSourceGenerated(all_libs_[i].source_file()); |
+ } |
} |
void Target::CheckSourceGenerated(const SourceFile& source) const { |