diff options
author | Chad Austin <chad@imvu.com> | 2013-07-17 11:04:21 -0700 |
---|---|---|
committer | Chad Austin <chad@imvu.com> | 2013-07-17 15:04:13 -0700 |
commit | 8e5bdd53c51bb50e61c5a7a312e0c1f17f3da327 (patch) | |
tree | 53cb91f523fca921e88f36cf49fcd53ecfe04f32 /emscripten.py | |
parent | 2b2b3b613e44970c82774416b636edb6afa0d262 (diff) |
avoid importing shared from emscripten.py if possible
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 5ef2f7ab..23aabee1 100755 --- a/emscripten.py +++ b/emscripten.py @@ -11,7 +11,6 @@ headers, for the libc implementation in JS). import os, sys, json, optparse, subprocess, re, time, multiprocessing, string -from tools import shared from tools import jsrun, cache as cache_module, tempfiles from tools.response_file import read_response_file @@ -26,6 +25,7 @@ def get_configuration(): if hasattr(get_configuration, 'configuration'): return get_configuration.configuration + from tools import shared configuration = shared.Configuration(environ=os.environ) get_configuration.configuration = configuration return configuration @@ -468,6 +468,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, } ''' % (sig, i, args, arg_coercions, jsret)) + from tools import shared asm_setup += '\n' + shared.JS.make_invoke(sig) + '\n' basic_funcs.append('invoke_%s' % sig) |