Index: dart/site/try/src/compilation.dart |
diff --git a/dart/site/try/src/compilation.dart b/dart/site/try/src/compilation.dart |
index b7da59a3d380c245e58ecf6f8a6f0f9ecfdf692e..d9b28afb0b3c7af711727c306b0a540da1475ac7 100644 |
--- a/dart/site/try/src/compilation.dart |
+++ b/dart/site/try/src/compilation.dart |
@@ -33,6 +33,7 @@ import 'ui.dart' show |
import 'settings.dart' show |
alwaysRunInWorker, |
+ incrementalCompilation, |
minified, |
onlyAnalyze, |
verboseCompiler; |
@@ -98,13 +99,14 @@ class CompilationProcess { |
current = this; |
var options = [ |
'--analyze-main', |
- '--disable-type-inference', |
- '--incremental-support', |
'--no-source-maps', |
]; |
if (verboseCompiler) options.add('--verbose'); |
if (minified) options.add('--minify'); |
if (onlyAnalyze) options.add('--analyze-only'); |
+ if (incrementalCompilation.value) { |
+ options.addAll(['--incremental-support', '--disable-type-inference']); |
+ } |
interaction.compilationStarting(); |
compilerPort.send([['options', options], receivePort.sendPort]); |
receivePort.listen(onMessage); |