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

Unified Diff: dart/frog/presubmit.py

Issue 9719019: Launch Leg independently of Frog. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address own comment Created 8 years, 9 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 | « dart/frog/leg/leg.dart ('k') | dart/frog/scripts/buildbot_annotated_steps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/presubmit.py
diff --git a/dart/frog/presubmit.py b/dart/frog/presubmit.py
index 3202c8c9c4b93d28d578befbd3c7f168c3b32f1e..82b3a8cb2cd4422bd217ccdbaebbe581eafe84ac 100755
--- a/dart/frog/presubmit.py
+++ b/dart/frog/presubmit.py
@@ -77,47 +77,50 @@ def SelfHost():
# VM Checked/CompileAll, produces checked
print 'Started'
start = time.time()
- RunCommand('./frog.py',
+ RunCommand('./frog/frog.py',
'--vm_flags=--compile_all --enable_type_checks --enable_asserts',
- '--', '--compile_all', '--enable_type_checks', '--out=minfrog',
- 'minfrog.dart')
+ '--', '--compile_all', '--enable_type_checks',
+ '--out=frog/minfrog', 'frog/minfrog.dart')
elapsed = time.time() - start
mode = 'in checked mode + compile all'
print 'Compiling minfrog on Dart VM took %s seconds %s' % (
b('%.1f' % elapsed), b(mode))
- os.chmod('./minfrog', EXECUTABLE)
+ os.chmod('./frog/minfrog', EXECUTABLE)
# VM Production
start = time.time()
- RunCommand('./frog.py', '--', '--out=minfrog', 'minfrog.dart')
+ RunCommand('./frog/frog.py', '--', '--out=frog/minfrog', 'frog/minfrog.dart')
elapsed = time.time() - start
mode = 'in production mode'
print 'Compiling minfrog on Dart VM took %s seconds %s' % (
b('%.1f' % elapsed), b(mode))
- os.chmod('./minfrog', EXECUTABLE)
+ os.chmod('./frog/minfrog', EXECUTABLE)
# Selfhost Production
start = time.time()
# TODO(jmesserly): --warnings_as_errors disabled until corelib is moved to
# new factory syntax.
- RunCommand('./minfrog', '--out=minfrog', # '--warnings_as_errors',
- 'minfrog.dart', 'tests/hello.dart', verbose=True)
+ RunCommand('./frog/minfrog', '--out=frog/minfrog', # '--warnings_as_errors',
+ 'frog/minfrog.dart', 'frog/tests/hello.dart', verbose=True)
elapsed = time.time() - start
- size = os.path.getsize('./minfrog') / 1024
+ size = os.path.getsize('./frog/minfrog') / 1024
print 'Bootstrapping minfrog took %s seconds %s' % (b('%.1f' % elapsed),
b('in production mode'))
print 'Generated %s minfrog is %s kB' % (b('production'), b(size))
def main():
+ dart_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ os.chdir(dart_dir)
+
(options, args) = BuildOptions().parse_args()
- RunCommand('../tools/build.py', '--mode=release')
+ RunCommand('./tools/build.py', '--mode=release', 'dart2js')
if not options.leg_only:
SelfHost()
- test_cmd = ['../tools/test.py', '--report', '--timeout=30',
+ test_cmd = ['./tools/test.py', '--report', '--timeout=30',
'--progress=color', '--mode=release', '--checked']
if options.notest: return
« no previous file with comments | « dart/frog/leg/leg.dart ('k') | dart/frog/scripts/buildbot_annotated_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698