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

Unified Diff: tools/gn/ninja_target_writer.cc

Issue 25153002: Enable compiling GN by default. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set:  Created 7 years, 3 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 | « tools/gn/input_file_manager.cc ('k') | tools/gn/operators.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/ninja_target_writer.cc
diff --git a/tools/gn/ninja_target_writer.cc b/tools/gn/ninja_target_writer.cc
index e384cd4cfb611d037a6e43d3065c709e2cf9768a..82a022edde4916fdd80932e62d1b3a29e10bc554 100644
--- a/tools/gn/ninja_target_writer.cc
+++ b/tools/gn/ninja_target_writer.cc
@@ -87,7 +87,8 @@ void NinjaTargetWriter::RunAndWriteFile(const Target* target) {
}
std::string contents = file.str();
- file_util::WriteFile(ninja_file, contents.c_str(), contents.size());
+ file_util::WriteFile(ninja_file, contents.c_str(),
+ static_cast<int>(contents.size()));
}
void NinjaTargetWriter::WriteEnvironment() {
« no previous file with comments | « tools/gn/input_file_manager.cc ('k') | tools/gn/operators.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698