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

Unified Diff: tools/gn/gn_main.cc

Issue 483403005: GN build improvemenst (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/BUILD.gn ('k') | tools/gn/last_commit_position.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/gn_main.cc
diff --git a/tools/gn/gn_main.cc b/tools/gn/gn_main.cc
index 25130a09ac04e61663828fc580d4e56aeeef947b..05291e9a9d3d6e11c5b8038ff339446a7e0f4e39 100644
--- a/tools/gn/gn_main.cc
+++ b/tools/gn/gn_main.cc
@@ -13,9 +13,9 @@
// Only the GN-generated build makes this header for now.
// TODO(brettw) consider adding this if we need it in GYP.
#if defined(GN_BUILD)
-#include "build/util/last_change.h"
+#include "tools/gn/last_commit_position.h"
#else
-#define LAST_CHANGE "UNKNOWN"
+#define LAST_COMMIT_POSITION "UNKNOWN"
#endif
namespace {
@@ -50,7 +50,7 @@ int main(int argc, char** argv) {
command = commands::kHelp;
} else if (cmdline.HasSwitch("version")) {
// Make "--version" print the version and exit.
- OutputString(std::string(LAST_CHANGE) + "\n");
+ OutputString(std::string(LAST_COMMIT_POSITION) + "\n");
exit(0);
} else if (args.empty()) {
// No command, print error and exit.
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/last_commit_position.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698