1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 01:35:13 +03:00

testing/emscripten: fix issues with Closure Compiler

And relax version bound for emscripten-optimizer.
This commit is contained in:
Jakub Jirutka 2017-04-03 19:51:18 +02:00
parent 911d1a0406
commit c80e424f4e
3 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,21 @@
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Mon, 3 Apr 2017 19:39:00 +0200
Subject: [PATCH] Fix on newer Closure Compiler, change language_in to ES6
And also fix name of the compilation_level.
Upstream-Issue: https://github.com/kripken/emscripten/issues/5109
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -2140,8 +2140,8 @@
args = [JAVA,
'-Xmx' + (os.environ.get('JAVA_HEAP_SIZE') or '1024m'), # if you need a larger Java heap, use this environment variable
'-jar', CLOSURE_COMPILER,
- '--compilation_level', 'ADVANCED_OPTIMIZATIONS',
- '--language_in', 'ECMASCRIPT5',
+ '--compilation_level', 'ADVANCED',
+ '--language_in', 'ECMASCRIPT6',
'--externs', CLOSURE_EXTERNS,
#'--variable_map_output_file', filename + '.vars',
'--js', filename, '--js_output_file', filename + '.cc.js']