flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [1/2] git commit: [flex-falcon] [refs/heads/develop_strictest] - Add strictest possible compiler flags to the publisher.
Date Tue, 12 Nov 2013 20:10:21 GMT
Updated Branches:
  refs/heads/develop_strictest [created] 9e10215ec


Add strictest possible compiler flags to the publisher.

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/e88449e2
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/e88449e2
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/e88449e2

Branch: refs/heads/develop_strictest
Commit: e88449e2baa758c969df0e5b8d611e1273b5cd72
Parents: dc0c5fe
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Tue Nov 12 21:09:18 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Tue Nov 12 21:09:18 2013 +0100

----------------------------------------------------------------------
 .../codegen/mxml/flexjs/MXMLFlexJSPublisher.java     | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e88449e2/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
index 551e65a..beb9764 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSPublisher.java
@@ -25,9 +25,9 @@ import org.apache.flex.compiler.internal.graph.GoogDepsWriter;
 import org.apache.flex.compiler.internal.projects.FlexJSProject;
 import org.apache.flex.compiler.utils.JSClosureCompilerUtil;
 
-//import com.google.javascript.jscomp.ErrorManager;
 import com.google.javascript.jscomp.SourceFile;
 import com.google.javascript.jscomp.SourceMap;
+//import com.google.javascript.jscomp.ErrorManager;
 //import com.google.javascript.jscomp.deps.DepsGenerator;
 //import com.google.javascript.jscomp.deps.DepsGenerator.InclusionStrategy;
 
@@ -223,6 +223,19 @@ public class MXMLFlexJSPublisher extends JSGoogPublisher implements
             optionList.add("--js=" + file.getCanonicalPath());
         }
 
+        // (erikdebruin) set compiler flags to 'strictest' to allow maximum
+        //               code optimization
+        // start 'really strict'
+        optionList.add("--define='goog.DEBUG=false'");
+        optionList.add("--language_in=ECMASCRIPT5_STRICT");
+        optionList.add("--warning_level=VERBOSE");
+        optionList.add("--jscomp_warning=accessControls");
+        optionList.add("--jscomp_warning=const");
+        optionList.add("--jscomp_warning=constantProperty");
+        optionList.add("--jscomp_warning=strictModuleDepCheck");
+        optionList.add("--jscomp_warning=visibility");
+        // end 'really strict'
+        
         optionList.add("--closure_entry_point=" + projectName);
         optionList.add("--only_closure_dependencies");
         optionList.add("--compilation_level=ADVANCED_OPTIMIZATIONS");


Mime
View raw message