aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Renaux <pierre@talansoft.com>2012-04-03 22:52:51 +0800
committerPierre Renaux <pierre@talansoft.com>2012-04-03 22:52:51 +0800
commit8e056ba5901791b91ae464e6806fb66407b47bb6 (patch)
treeaaa8455088f84083a2cc6c2d4dedf5ec6ab7ff51
parent7dc436670732c7453f97cb0a584ea020f3f84539 (diff)
[tools/shared.py]: Added -Xmx1024m, big .js quickly go over the default memory heap without this ;
-rw-r--r--tools/shared.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 4e5f3d6a..26bb0d45 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -277,7 +277,7 @@ def read_pgo_data(filename):
'''
signs_lines = []
overflows_lines = []
-
+
for line in open(filename, 'r'):
try:
if line.rstrip() == '': continue
@@ -739,7 +739,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
# Something like this (adjust memory as needed):
# java -Xmx1024m -jar CLOSURE_COMPILER --compilation_level ADVANCED_OPTIMIZATIONS --variable_map_output_file src.cpp.o.js.vars --js src.cpp.o.js --js_output_file src.cpp.o.cc.js
- args = ['java', '-jar', CLOSURE_COMPILER,
+ args = ['java',
+ '-Xmx1024m',
+ '-jar', CLOSURE_COMPILER,
'--compilation_level', 'ADVANCED_OPTIMIZATIONS',
'--formatting', 'PRETTY_PRINT',
#'--variable_map_output_file', filename + '.vars',
@@ -798,7 +800,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
elif ord(b[0]) == 222 and ord(b[1]) == 192 and ord(b[2]) == 23 and ord(b[3]) == 11:
b = open(filename, 'r').read(24)
return b[20] == 'B' and b[21] == 'C'
-
+
return False
# Permanent cache for dlmalloc and stdlibc++