Index: build/secondary/tools/grit/grit_rule.gni |
diff --git a/build/secondary/tools/grit/grit_rule.gni b/build/secondary/tools/grit/grit_rule.gni |
index e1cf53f748c40376711eca0c50c02d63aabb766d..bec147eebbecae844039d305e1600567a0c1040b 100644 |
--- a/build/secondary/tools/grit/grit_rule.gni |
+++ b/build/secondary/tools/grit/grit_rule.gni |
@@ -282,7 +282,11 @@ template("grit") { |
args = [ |
"-i", source_path, "build", |
- "-f", resource_ids, |
+ ] |
+ if (resource_ids != "") { |
+ args += [ "-f", resource_ids ] |
+ } |
+ args += [ |
"-o", rebased_output_dir, |
"--depdir", ".", |
"--depfile", rebase_path(depfile, root_build_dir), |