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

Unified Diff: dart/tools/create_sdk.py

Issue 11187028: Generate snapshot for dartj2s; use it in the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | « no previous file | dart/utils/compiler/build_helper.dart » ('j') | dart/utils/compiler/build_helper.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/create_sdk.py
diff --git a/dart/tools/create_sdk.py b/dart/tools/create_sdk.py
index 0543b647c23d4695fac9eccd0484d1714ad51284..a0b51a431b50d8a5c67a354145a83b5496923605 100755
--- a/dart/tools/create_sdk.py
+++ b/dart/tools/create_sdk.py
@@ -131,6 +131,15 @@ def CopyDart2Js(build_dir, sdk_root, version):
ReplaceInFiles([dartdoc],
[(r'\$BIN_DIR/\.\./\.\.', r'$BIN_DIR/..')])
+ # TODO(ahe): Enable for Windows as well.
+ subprocess.call([os.path.join(build_dir, 'gen_snapshot'),
+ '--script_snapshot=%s' %
+ os.path.join(sdk_root, 'pkg', 'compiler',
+ 'implementation', 'dart2js.dart.snapshot'),
+ os.path.join(sdk_root, 'pkg', 'compiler',
+ 'implementation', 'dart2js.dart')])
+
+
def Main(argv):
# Pull in all of the gpyi files which will be munged into the sdk.
« no previous file with comments | « no previous file | dart/utils/compiler/build_helper.dart » ('j') | dart/utils/compiler/build_helper.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698