Index: tools/gn/action_target_generator.cc |
diff --git a/tools/gn/action_target_generator.cc b/tools/gn/action_target_generator.cc |
index 793635937b9ea15576fcffe069607ad6f41f1f19..2bb423dd5a615d02a92f4c916bdd5d40a71390b5 100644 |
--- a/tools/gn/action_target_generator.cc |
+++ b/tools/gn/action_target_generator.cc |
@@ -73,7 +73,8 @@ bool ActionTargetGenerator::FillScript() { |
return false; |
SourceFile script_file = |
- scope_->GetSourceDir().ResolveRelativeFile(value->string_value()); |
+ scope_->GetSourceDir().ResolveRelativeFile(value->string_value(), |
+ scope_->settings()->build_settings()->root_path()); |
if (script_file.value().empty()) { |
*err_ = Err(*value, "script name is empty"); |
return false; |