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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 13945008: Move the dart2js snapshot into bin directory of sdk root. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « sdk/lib/_internal/compiler/implementation/compiler.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart2js.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/dart2js.dart (revision 21179)
+++ sdk/lib/_internal/compiler/implementation/dart2js.dart (working copy)
@@ -20,6 +20,16 @@
const String LIBRARY_ROOT = '../../../../..';
const String OUTPUT_LANGUAGE_DART = 'Dart';
+/**
+ * A string to identify the revision or build.
+ *
+ * This ID is displayed if the compiler crashes and in verbose mode, and is
+ * an aid in reproducing bug reports.
+ *
+ * The actual string is rewritten by a wrapper script when included in the sdk.
+ */
+String BUILD_ID = null;
+
typedef void HandleOption(String option);
class OptionHandler {
@@ -87,6 +97,10 @@
passThrough(String argument) => options.add(argument);
+ if (BUILD_ID != null) {
+ passThrough("--build-id=$BUILD_ID");
+ }
+
setLibraryRoot(String argument) {
libraryRoot = cwd.resolve(extractPath(argument));
}
@@ -486,9 +500,9 @@
fail(message);
}
-void main() {
+void mainWithErrorHandler(Options options) {
try {
- compilerMain(new Options());
+ compilerMain(options);
} catch (exception, trace) {
try {
print('Internal error: $exception');
@@ -502,3 +516,7 @@
}
}
}
+
+void main() {
+ mainWithErrorHandler(new Options());
+}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/compiler.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698