c9e9c1d8e9
This disables most runtime features of dart:isolate, similar to dart:io. For now, this supports `new ReceivePort()` and `ReceivePort.close` as those are used by async tests to keep the Dart VM alive. Those are no-ops in DDC. Also removes most of dart:_isolate_helper, except for the JS API that's used to bootstrap DDC `main()`. Change-Id: I84eab6cd39d05a70a6afe982e952076ddaaa8c0f Reviewed-on: https://dart-review.googlesource.com/45754 Commit-Queue: Jenny Messerly <jmesserly@google.com> Reviewed-by: Vijay Menon <vsm@google.com>
55 lines
1.4 KiB
Dart
55 lines
1.4 KiB
Dart
#!/usr/bin/env dart
|
|
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/// A straightforward script that builds the SDK.
|
|
///
|
|
/// This would be easy enough to do in a shell script, as we go through the
|
|
/// command line interface. But being able to build from a Dart library means
|
|
/// we can call this during code coverage to get more realistic numbers.
|
|
|
|
import 'dart:io';
|
|
|
|
import 'package:dev_compiler/src/analyzer/command.dart';
|
|
|
|
main(List<String> arguments) {
|
|
var args = ['--no-source-map', '--no-emit-metadata'];
|
|
args.addAll(arguments);
|
|
args.addAll([
|
|
'dart:_runtime',
|
|
'dart:_debugger',
|
|
'dart:_foreign_helper',
|
|
'dart:_interceptors',
|
|
'dart:_internal',
|
|
'dart:_isolate_helper',
|
|
'dart:_js_helper',
|
|
'dart:_js_mirrors',
|
|
'dart:_js_primitives',
|
|
'dart:_metadata',
|
|
'dart:_native_typed_data',
|
|
'dart:async',
|
|
'dart:collection',
|
|
'dart:convert',
|
|
'dart:core',
|
|
'dart:developer',
|
|
'dart:io',
|
|
'dart:isolate',
|
|
'dart:js',
|
|
'dart:js_util',
|
|
'dart:math',
|
|
'dart:mirrors',
|
|
'dart:typed_data',
|
|
'dart:indexed_db',
|
|
'dart:html',
|
|
'dart:html_common',
|
|
'dart:svg',
|
|
'dart:web_audio',
|
|
'dart:web_gl',
|
|
'dart:web_sql'
|
|
]);
|
|
|
|
var result = compile(args);
|
|
exit(result);
|
|
}
|