Index: tools/gn/copy_target_generator.cc |
diff --git a/tools/gn/copy_target_generator.cc b/tools/gn/copy_target_generator.cc |
index f02d4a7f750e40c49626747282acb7c1db12273e..b1b907642880c9697ec260e77ca8c2d32df6bfdd 100644 |
--- a/tools/gn/copy_target_generator.cc |
+++ b/tools/gn/copy_target_generator.cc |
@@ -6,14 +6,15 @@ |
#include "tools/gn/build_settings.h" |
#include "tools/gn/filesystem_utils.h" |
+#include "tools/gn/parse_tree.h" |
#include "tools/gn/scope.h" |
#include "tools/gn/value.h" |
CopyTargetGenerator::CopyTargetGenerator(Target* target, |
Scope* scope, |
- const Token& function_token, |
+ const FunctionCallNode* function_call, |
Err* err) |
- : TargetGenerator(target, scope, function_token, err) { |
+ : TargetGenerator(target, scope, function_call, err) { |
} |
CopyTargetGenerator::~CopyTargetGenerator() { |
@@ -33,18 +34,16 @@ void CopyTargetGenerator::DoRun() { |
return; |
if (target_->sources().empty()) { |
- *err_ = Err(function_token_, "Empty sources for copy command.", |
+ *err_ = Err(function_call_, "Empty sources for copy command.", |
"You have to specify at least one file to copy in the \"sources\"."); |
return; |
} |
if (target_->script_values().outputs().size() != 1) { |
- *err_ = Err(function_token_, "Copy command must have exactly one output.", |
+ *err_ = Err(function_call_, "Copy command must have exactly one output.", |
"You must specify exactly one value in the \"outputs\" array for the " |
"destination of the copy\n(see \"gn help copy\"). If there are " |
"multiple sources to copy, use source expansion\n(see \"gn help " |
"source_expansion\")."); |
return; |
} |
- |
- SetToolchainDependency(); |
} |