blob: 2be9858a7124c768955c091832bd49eaa58486a1 [file] [log] [blame]
// Copyright (c) 2019, 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.
import 'package:args/args.dart';
import 'package:expect/async_helper.dart';
import '../helpers/args_helper.dart';
import 'package:compiler/src/util/memory_compiler.dart';
main(List<String> args) {
ArgParser argParser = createArgParser();
asyncTest(() async {
ArgResults argResults = argParser.parse(args);
Uri entryPoint =
getEntryPoint(argResults) ??
Uri.base.resolve('pkg/compiler/test/codesize/swarm/swarm.dart');
Uri? librariesSpecificationUri = getLibrariesSpec(argResults);
Uri? packageConfig = getPackages(argResults);
List<String> options = getOptions(argResults);
await runCompiler(
entryPoint: entryPoint,
packageConfig: packageConfig,
librariesSpecificationUri: librariesSpecificationUri,
options: options,
);
});
}