Files
sdk/runtime/vm/version_in.cc
T
Ryan Macnak 7973eacdd0 [vm] Rename USING_SIMULATOR to DART_INCLUDE_SIMULATOR.
We now have a mode where the simulator is available but not always used.

TEST=ci
Change-Id: If271f334150e2a125a014a4baa2e03d726300d35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/435562
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2025-06-18 13:07:22 -07:00

45 lines
1.0 KiB
C++

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/version.h"
#include "vm/globals.h"
namespace dart {
const char* Version::String() {
return str_;
}
const char* Version::SnapshotString() {
return snapshot_hash_;
}
const char* Version::CommitString() {
return commit_;
}
const char* Version::SdkHash() {
return git_short_hash_;
}
const char* Version::Channel() {
return channel_;
}
const char* Version::snapshot_hash_ = "{{SNAPSHOT_HASH}}";
const char* Version::str_ =
"{{VERSION_STR}} ({{CHANNEL}}) ({{COMMIT_TIME}})"
" on \"" kHostOperatingSystemName
"_"
#if defined(DART_INCLUDE_SIMULATOR)
"sim"
#endif
kTargetArchitectureName "\"";
const char* Version::commit_ = "{{VERSION_STR}}";
const char* Version::git_short_hash_ = "{{GIT_HASH}}";
const char* Version::channel_ = "{{CHANNEL}}";
} // namespace dart