Remove semicolons from Python code.
This commit is contained in:
Родитель
47912347e2
Коммит
2af851e905
6
emcc
6
emcc
|
@ -826,7 +826,7 @@ try:
|
|||
newargs[i] = ''
|
||||
newargs[i+1] = ''
|
||||
elif newargs[i].startswith('--use-preload-cache'):
|
||||
use_preload_cache = True;
|
||||
use_preload_cache = True
|
||||
newargs[i] = ''
|
||||
elif newargs[i] == '--ignore-dynamic-linking':
|
||||
ignore_dynamic_linking = True
|
||||
|
@ -952,7 +952,7 @@ try:
|
|||
if not prefix: continue
|
||||
if l.startswith(prefix):
|
||||
l = l[len(prefix):]
|
||||
break;
|
||||
break
|
||||
libs.append(l)
|
||||
newargs[i] = ''
|
||||
else:
|
||||
|
@ -1213,7 +1213,7 @@ try:
|
|||
os.path.join('libc', 'gen', 'vwarn.c'),
|
||||
os.path.join('libc', 'gen', 'vwarnx.c'),
|
||||
os.path.join('libc', 'stdlib', 'strtod.c'),
|
||||
];
|
||||
]
|
||||
return build_libc('libc.bc', libc_files)
|
||||
|
||||
def apply_libc(need):
|
||||
|
|
|
@ -163,10 +163,10 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
|
|||
if DEBUG_CACHE and not out:
|
||||
dfpath = os.path.join(get_configuration().TEMP_DIR, "ems_" + shortkey)
|
||||
dfp = open(dfpath, 'w')
|
||||
dfp.write(pre_input);
|
||||
dfp.write("\n\n========================== settings_text\n\n");
|
||||
dfp.write(settings_text);
|
||||
dfp.write("\n\n========================== libraries\n\n");
|
||||
dfp.write(pre_input)
|
||||
dfp.write("\n\n========================== settings_text\n\n")
|
||||
dfp.write(settings_text)
|
||||
dfp.write("\n\n========================== libraries\n\n")
|
||||
dfp.write("\n".join(libraries))
|
||||
dfp.close()
|
||||
print >>sys.stderr, ' cache miss, key data dumped to %s' % dfpath
|
||||
|
@ -485,7 +485,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
|
|||
global_vars = map(lambda g: g['name'], filter(lambda g: settings['NAMED_GLOBALS'] or g.get('external') or g.get('unIndexable'), forwarded_json['Variables']['globals'].values()))
|
||||
global_funcs = ['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2]
|
||||
def math_fix(g):
|
||||
return g if not g.startswith('Math_') else g.split('_')[1];
|
||||
return g if not g.startswith('Math_') else g.split('_')[1]
|
||||
asm_global_funcs = ''.join([' var ' + g.replace('.', '_') + '=global.' + g + ';\n' for g in maths]) + \
|
||||
''.join([' var ' + g + '=env.' + math_fix(g) + ';\n' for g in basic_funcs + global_funcs])
|
||||
asm_global_vars = ''.join([' var ' + g + '=env.' + g + '|0;\n' for g in basic_vars + global_vars]) + \
|
||||
|
|
|
@ -257,7 +257,7 @@ def check_clang_version():
|
|||
|
||||
def check_llvm_version():
|
||||
try:
|
||||
check_clang_version();
|
||||
check_clang_version()
|
||||
except Exception, e:
|
||||
logging.warning('Could not verify LLVM version: %s' % str(e))
|
||||
|
||||
|
@ -1196,7 +1196,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
|
|||
opts.append('-jump-threading')
|
||||
opts.append('-correlated-propagation')
|
||||
opts.append('-dse')
|
||||
#addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
|
||||
#addExtensionsToPM(EP_ScalarOptimizerLate, MPM)
|
||||
|
||||
opts.append('-adce')
|
||||
opts.append('-simplifycfg')
|
||||
|
@ -1300,7 +1300,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
|
|||
'-O' + str(opt_level), '--closure', '0'], raw)
|
||||
f = open(relooper, 'w')
|
||||
f.write("// Relooper, (C) 2012 Alon Zakai, MIT license, https://github.com/kripken/Relooper\n")
|
||||
f.write("var Relooper = (function() {\n");
|
||||
f.write("var Relooper = (function() {\n")
|
||||
f.write(open(raw).read())
|
||||
f.write('\n return Module.Relooper;\n')
|
||||
f.write('})();\n')
|
||||
|
|
Загрузка…
Ссылка в новой задаче