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

Side by Side Diff: pkg/dev_compiler/tool/build_sdk.dart

Issue 2646313003: Cleanup build_sdk error checking (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/dev_compiler/tool/build_sdk.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 /// A straightforward script that builds the SDK. 6 /// A straightforward script that builds the SDK.
7 /// 7 ///
8 /// This would be easy enough to do in a shell script, as we go through the 8 /// This would be easy enough to do in a shell script, as we go through the
9 /// command line interface. But being able to build from a Dart library means 9 /// command line interface. But being able to build from a Dart library means
10 /// we can call this during code coverage to get more realistic numbers. 10 /// we can call this during code coverage to get more realistic numbers.
11 11
12 import 'dart:io';
13
12 import 'package:dev_compiler/src/compiler/command.dart'; 14 import 'package:dev_compiler/src/compiler/command.dart';
13 15
14 main(List<String> arguments) { 16 main(List<String> arguments) {
15 var args = [ 17 var args = [
16 '--unsafe-force-compile', 18 '--unsafe-force-compile',
17 '--no-source-map', 19 '--no-source-map',
18 '--no-emit-metadata' 20 '--no-emit-metadata'
19 ]; 21 ];
20 args.addAll(arguments); 22 args.addAll(arguments);
21 args.addAll([ 23 args.addAll([
(...skipping 23 matching lines...) Expand all
45 'dart:typed_data', 47 'dart:typed_data',
46 'dart:indexed_db', 48 'dart:indexed_db',
47 'dart:html', 49 'dart:html',
48 'dart:html_common', 50 'dart:html_common',
49 'dart:svg', 51 'dart:svg',
50 'dart:web_audio', 52 'dart:web_audio',
51 'dart:web_gl', 53 'dart:web_gl',
52 'dart:web_sql' 54 'dart:web_sql'
53 ]); 55 ]);
54 56
55 if (compile(args) != 0) { 57 var result = compile(args);
56 throw 'SDK build failed.'; 58 exit(result);
57 }
58 } 59 }
OLDNEW
« no previous file with comments | « no previous file | pkg/dev_compiler/tool/build_sdk.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698