mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
24683da915
Examples of the new line added to non-symbolic stack traces: os: linux arch: x64 comp: yes sim: no (Running on linux-x64c) os: macos arch: arm64 comp: no sim: yes (Running on mac-simarm64) This CL also abstracts out the separate hardcoded strings across the codebase for host and target OS and architecture into definitions in platform/globals.h to ensure that they stay in sync across different uses. TEST=vm/dart{,_2}/use_dwarf_stack_traces_flag Issue: https://github.com/flutter/flutter/pull/101586 Change-Id: Ifdfea5138dd1003f561da0174e89aebc165bf9b0 Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-dwarf-linux-product-x64-try,vm-kernel-precomp-linux-release-simarm-try,vm-kernel-precomp-linux-release-simarm64-try,vm-kernel-precomp-linux-release-simarm_x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-mac-product-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-linux-release-simarm_x64-try,vm-kernel-precomp-win-release-x64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try,vm-kernel-precomp-mac-release-simarm64-try,vm-ffi-android-release-arm-try,vm-ffi-android-release-arm64c-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253283 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>
39 lines
918 B
C++
39 lines
918 B
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::snapshot_hash_ = "{{SNAPSHOT_HASH}}";
|
|
const char* Version::str_ =
|
|
"{{VERSION_STR}} ({{CHANNEL}}) ({{COMMIT_TIME}})"
|
|
" on \"" kHostOperatingSystemName
|
|
"_"
|
|
#if defined(USING_SIMULATOR)
|
|
"sim"
|
|
#endif
|
|
kTargetArchitectureName "\"";
|
|
const char* Version::commit_ = "{{VERSION_STR}}";
|
|
const char* Version::git_short_hash_ = "{{GIT_HASH}}";
|
|
|
|
} // namespace dart
|