@@ -168,21 +168,28 @@ def __getOptimizedCompilerArgs():
168168 compilerArgs = [
169169 '--charset UTF-8' ,
170170 '--compilation_level ADVANCED_OPTIMIZATIONS' ,
171+
171172 '--process_closure_primitives' ,
173+
172174 '--language_in ECMASCRIPT3' ,
173175 '--language_out ECMASCRIPT3' ,
176+
177+ '--hide_warnings_for "contrib/closure-library"' ,
174178 '--assume_function_wrapper' ,
175179 '--use_types_for_optimization true' ,
180+
176181 '--output_wrapper "' + __get_file_overview () + '(function(){%output%})();"' ,
177182 '--env BROWSER' ,
183+
178184 '--extra_annotation_name "includeDoc"' ,
179185 '--extra_annotation_name "illustration"' ,
180186 '--extra_annotation_name "illustrationDesc"' ,
181187 '--extra_annotation_name "ignoreDoc"' ,
182188 '--extra_annotation_name "propertyDoc"' ,
183189 '--extra_annotation_name "shortDescription"' ,
190+
184191 '--warning_level VERBOSE' ,
185- '--hide_warnings_for "libs/closure-library"' ,
192+
186193 '--jscomp_warning accessControls' ,
187194 '--jscomp_warning ambiguousFunctionDecl' ,
188195 '--jscomp_warning checkDebuggerStatement' ,
@@ -191,7 +198,6 @@ def __getOptimizedCompilerArgs():
191198 '--jscomp_warning checkTypes' ,
192199 '--jscomp_warning checkVars' ,
193200 '--jscomp_warning closureDepMethodUsageChecks' ,
194- '--jscomp_warning commonJsModuleLoad' ,
195201 '--jscomp_warning conformanceViolations' ,
196202 '--jscomp_warning const' ,
197203 '--jscomp_warning constantProperty' ,
@@ -206,7 +212,6 @@ def __getOptimizedCompilerArgs():
206212 '--jscomp_warning fileoverviewTags' ,
207213 '--jscomp_warning functionParams' ,
208214 '--jscomp_warning globalThis' ,
209- '--jscomp_warning inferredConstCheck' ,
210215 '--jscomp_warning internetExplorerChecks' ,
211216 '--jscomp_warning invalidCasts' ,
212217 '--jscomp_warning misplacedTypeAnnotation' ,
@@ -244,7 +249,7 @@ def __getDefaultCompilerArgs(outputFile):
244249 'java -jar' ,
245250 COMPILER_PATH ,
246251 '--js="%s"' % os .path .join (SRC_PATH , '**.js' ),
247- '--js="%s"' % os .path .join (CLOSURE_LIBRARY_PATH , '**.js' ),
252+ '--js="%s"' % os .path .join (CLOSURE_SOURCE_PATH , '**.js' ),
248253 '--define "goog.DEBUG=false"' ,
249254 '--js_output_file ' + outputFile ,
250255 '--dependency_mode=STRICT' ,
0 commit comments