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:
parent
911d1a0406
commit
c80e424f4e
3 changed files with 45 additions and 3 deletions
21
testing/emscripten/closurecompiler-language_in-es6.patch
Normal file
21
testing/emscripten/closurecompiler-language_in-es6.patch
Normal 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']
|
Loading…
Add table
Add a link
Reference in a new issue