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

Unified Diff: lib/src/util/io.dart

Issue 960723002: Add a CompilerPool class. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Fix library name. Created 5 years, 10 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 | « lib/src/runner/browser/compiler_pool.dart ('k') | test/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/io.dart
diff --git a/lib/src/util/io.dart b/lib/src/util/io.dart
index 8a4a9036c766984ad7e2b1293decc6960ba3f7bd..181cb5c504b5e6c0280fb2a8b370d0e08d9141f9 100644
--- a/lib/src/util/io.dart
+++ b/lib/src/util/io.dart
@@ -9,6 +9,10 @@ import 'dart:io';
import 'package:path/path.dart' as p;
+/// The root directory of the Dart SDK.
+final String sdkDir = _computeSdkDir();
+String _computeSdkDir() => p.dirname(p.dirname(Platform.executable));
+
/// Returns whether the current Dart version supports [Isolate.kill].
final bool supportsIsolateKill = _supportsIsolateKill;
bool get _supportsIsolateKill {
« no previous file with comments | « lib/src/runner/browser/compiler_pool.dart ('k') | test/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698