diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-29 13:21:59 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-11 13:13:29 +0100 |
commit | 8c55f364dad167964b4959554863f905967cc239 (patch) | |
tree | 0ef3212404e63a243a7b99800d71268c19d323b9 | |
parent | fd72d5c9ad05104eb7f59adeec3493651adf488c (diff) | |
download | qtwebengine-chromium-8c55f364dad167964b4959554863f905967cc239.tar.gz |
Build without last-commit header
Change-Id: I92658998836c1e2a1c877433d587d98ce5bb1c32
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r-- | gn/src/gn/gn_main.cc | 4 | ||||
-rw-r--r-- | gn/src/gn/scope_per_file_provider.cc | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gn/src/gn/gn_main.cc b/gn/src/gn/gn_main.cc index e839b322d38..3d260a3c46f 100644 --- a/gn/src/gn/gn_main.cc +++ b/gn/src/gn/gn_main.cc @@ -16,7 +16,7 @@ #include "util/msg_loop.h" #include "util/sys_info.h" -#include "last_commit_position.h" +// #include "last_commit_position.h" namespace { @@ -49,7 +49,7 @@ int main(int argc, char** argv) { command = commands::kHelp; } else if (cmdline.HasSwitch(switches::kVersion)) { // Make "--version" print the version and exit. - OutputString(std::string(LAST_COMMIT_POSITION) + "\n"); +// OutputString(std::string(LAST_COMMIT_POSITION) + "\n"); exit(0); } else if (args.empty()) { // No command, print error and exit. diff --git a/gn/src/gn/scope_per_file_provider.cc b/gn/src/gn/scope_per_file_provider.cc index 3110a8f75b3..629c526ae3f 100644 --- a/gn/src/gn/scope_per_file_provider.cc +++ b/gn/src/gn/scope_per_file_provider.cc @@ -12,7 +12,7 @@ #include "gn/value.h" #include "gn/variables.h" -#include "last_commit_position.h" +// #include "last_commit_position.h" ScopePerFileProvider::ScopePerFileProvider(Scope* scope, bool allow_target_vars) : ProgrammaticProvider(scope), allow_target_vars_(allow_target_vars) {} @@ -66,10 +66,10 @@ const Value* ScopePerFileProvider::GetDefaultToolchain() { } const Value* ScopePerFileProvider::GetGnVersion() { - if (!gn_version_) { - gn_version_ = std::make_unique<Value>( - nullptr, static_cast<int64_t>(LAST_COMMIT_POSITION_NUM)); - } +// if (!gn_version_) { +// gn_version_ = std::make_unique<Value>( +// nullptr, static_cast<int64_t>(LAST_COMMIT_POSITION_NUM)); +// } return gn_version_.get(); } |