Version 2.15.0-27.0.dev
Merge commit '4c47fdbea67b263e24549f33ed5cc8e0eacaa237' into 'dev'
diff --git a/benchmarks/SDKArtifactSizes/dart/SDKArtifactSizes.dart b/benchmarks/SDKArtifactSizes/dart/SDKArtifactSizes.dart
index 5987a50..291ad67 100644
--- a/benchmarks/SDKArtifactSizes/dart/SDKArtifactSizes.dart
+++ b/benchmarks/SDKArtifactSizes/dart/SDKArtifactSizes.dart
@@ -66,13 +66,12 @@
// Measure the (compressed) sdk size.
final tempDir = Directory.systemTemp.createTempSync('dartdev');
- final sdkArchive =
- compress(File(Platform.resolvedExecutable).parent.parent, tempDir);
- await reportArtifactSize(sdkArchive?.path, 'sdk');
+ final sdkArchive = compress(Directory('$rootDir/dart-sdk'), tempDir);
+ await reportArtifactSize(sdkArchive?.path ?? '', 'sdk');
tempDir.deleteSync(recursive: true);
}
-File compress(Directory sourceDir, Directory targetDir) {
+File? compress(Directory sourceDir, Directory targetDir) {
final outFile = File('${targetDir.path}/sdk.zip');
if (Platform.isMacOS || Platform.isLinux) {
diff --git a/benchmarks/SDKArtifactSizes/dart2/SDKArtifactSizes.dart b/benchmarks/SDKArtifactSizes/dart2/SDKArtifactSizes.dart
index 0cefa4d..f5b7f05 100644
--- a/benchmarks/SDKArtifactSizes/dart2/SDKArtifactSizes.dart
+++ b/benchmarks/SDKArtifactSizes/dart2/SDKArtifactSizes.dart
@@ -2,6 +2,8 @@
// 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.
+// @dart=2.9
+
// Reports the sizes of binary artifacts shipped with the SDK.
import 'dart:io';
@@ -66,13 +68,12 @@
// Measure the (compressed) sdk size.
final tempDir = Directory.systemTemp.createTempSync('dartdev');
- final sdkArchive =
- compress(File(Platform.resolvedExecutable).parent.parent, tempDir);
+ final sdkArchive = compress(Directory('$rootDir/dart-sdk'), tempDir);
await reportArtifactSize(sdkArchive?.path ?? '', 'sdk');
tempDir.deleteSync(recursive: true);
}
-File? compress(Directory sourceDir, Directory targetDir) {
+File compress(Directory sourceDir, Directory targetDir) {
final outFile = File('${targetDir.path}/sdk.zip');
if (Platform.isMacOS || Platform.isLinux) {
diff --git a/tools/VERSION b/tools/VERSION
index 595c654..2034e26 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -27,5 +27,5 @@
MAJOR 2
MINOR 15
PATCH 0
-PRERELEASE 26
+PRERELEASE 27
PRERELEASE_PATCH 0
\ No newline at end of file