This commit is contained in:
Bruce Mitchener 2014-12-09 21:49:32 +07:00
Родитель 4c0ee8607b
Коммит ed19562a35
2 изменённых файлов: 3 добавлений и 3 удалений

4
emcc
Просмотреть файл

@ -475,7 +475,7 @@ try:
opt_level = validate_arg_level(requested_level, 3, 'Invalid optimization level: ' + newargs[i])
# We leave the -O option in place so that the clang front-end runs in that
# optimization mode, but we disable the actual optimization passes, as we'll
# run them seperately.
# run them separately.
newargs.append('-mllvm')
newargs.append('-disable-llvm-optzns')
elif newargs[i].startswith('--js-opts'):
@ -1427,7 +1427,7 @@ try:
for i in range(len(chunks)):
run_passes(chunks[i], 'js_opts_' + str(i), just_split='receiveJSON' in chunks[i], just_concat='emitJSON' in chunks[i])
else:
# DEBUG 2, run each pass seperately
# DEBUG 2, run each pass separately
for p in passes:
js_optimizer_queue = [p]
flush_js_optimizer_queue(p)

Просмотреть файл

@ -315,7 +315,7 @@ var EXCEPTION_CATCHING_WHITELIST = []; // Enables catching exception in the lis
var ASYNCIFY = 0; // Whether to enable asyncify transformation
// This allows to inject some async functions to the C code that appear to be sync
// e.g. emscripten_sleep
var ASYNCIFY_FUNCTIONS = ['emscripten_sleep', // Functions that call any funcion in the list, directly or indirectly
var ASYNCIFY_FUNCTIONS = ['emscripten_sleep', // Functions that call any function in the list, directly or indirectly
'emscripten_wget', // will be transformed
'emscripten_yield'];
var ASYNCIFY_WHITELIST = ['qsort', // Functions in this list are never considered async, even if they appear in ASYNCIFY_FUNCTIONS