| Index: lib/compiler/implementation/apiimpl.dart
|
| diff --git a/lib/compiler/implementation/apiimpl.dart b/lib/compiler/implementation/apiimpl.dart
|
| index bc16bdb76f80583d5f9cc2d1fe8dedd8defa2d8a..a968dea7003479ad0fbba2d754207ebdf056fac0 100644
|
| --- a/lib/compiler/implementation/apiimpl.dart
|
| +++ b/lib/compiler/implementation/apiimpl.dart
|
| @@ -31,8 +31,16 @@ class Compiler extends leg.Compiler {
|
| enableUserAssertions: hasOption(options, '--enable-checked-mode'),
|
| enableMinification: hasOption(options, '--minify'),
|
| emitJavaScript: !hasOption(options, '--output-type=dart'),
|
| - forceCutDeclarationTypes:
|
| - hasOption(options, '--force-cut-declaration-types'));
|
| + strips: getStrips(options));
|
| +
|
| + static List<String> getStrips(List<String> options) {
|
| + for (String option in options) {
|
| + if (option.startsWith('--force-strip=')) {
|
| + return option.substring('--force-strip='.length).split(',');
|
| + }
|
| + }
|
| + return [];
|
| + }
|
|
|
| static bool hasOption(List<String> options, String option) {
|
| return options.indexOf(option) >= 0;
|
|
|