Skip to content

Commit cbf41b2

Browse files
committed
use optimized native optimizer by default
1 parent 28b0c9e commit cbf41b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/js_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def path_from_root(*pathelems):
2525
func_sig_json = re.compile('\["defun", ?"([_\w$]+)",')
2626
import_sig = re.compile('(var|const) ([_\w$]+ *=[^;]+);')
2727

28-
NATIVE_OPTIMIZER = os.environ.get('EMCC_NATIVE_OPTIMIZER') or '1' # use native optimizer by default, unless disabled by EMCC_NATIVE_OPTIMIZER=0 in the env
28+
NATIVE_OPTIMIZER = os.environ.get('EMCC_NATIVE_OPTIMIZER') or '2' # use optimized native optimizer by default, unless disabled by EMCC_NATIVE_OPTIMIZER=0 in the env
2929

3030
def split_funcs(js, just_split=False):
3131
if just_split: return map(lambda line: ('(json)', line), js.split('\n'))

0 commit comments

Comments
 (0)