Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(870)

Unified Diff: tools/gn/function_write_file.cc

Issue 1252403005: Add output reference to gen written files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not escape paths in build.ninja.d Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/gn/ninja_build_writer.cc » ('j') | tools/gn/ninja_build_writer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_write_file.cc
diff --git a/tools/gn/function_write_file.cc b/tools/gn/function_write_file.cc
index d24abc159ac5270046cf7a915b9bac70edea0163..45387a3967555394005d7455117160379055f25c 100644
--- a/tools/gn/function_write_file.cc
+++ b/tools/gn/function_write_file.cc
@@ -115,14 +115,6 @@ Value RunWriteFile(Scope* scope,
return Value();
g_scheduler->AddWrittenFile(source_file); // Track that we wrote this file.
- // Track how to recreate this file, since we write it a gen time.
- // Note this is a hack since the correct output is not a dependency proper,
- // but an addition of this file to the output of the gn rule that writes it.
- // This dependency will, however, cause the gen step to be re-run and the
- // build restarted if the file is missing.
- g_scheduler->AddGenDependency(
- scope->settings()->build_settings()->GetFullPath(source_file));
-
// Compute output.
std::ostringstream contents;
if (args[1].type() == Value::LIST) {
« no previous file with comments | « no previous file | tools/gn/ninja_build_writer.cc » ('j') | tools/gn/ninja_build_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698