aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorngld <ngld@tproxy.de>2013-09-16 23:49:19 +0200
committerngld <ngld@tproxy.de>2013-09-16 23:49:19 +0200
commit1600df2e360d0bbfd9195b3523dd3d0b440fe62a (patch)
tree8b6dc4e1f9b79520154025f5adbddc166eb069f7 /emscripten.py
parente0cd2c4078c5dbaecda881c9258f01d5069a1d02 (diff)
Integrate the new tool into emscripten
Automatically compile struct_info.json and save the compiled version in the emscripten cache.
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 4d744fdd..e6a6e124 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -709,7 +709,14 @@ def main(args, compiler_engine, cache, jcache, relooper, temp_files, DEBUG, DEBU
if not os.path.exists(relooper):
from tools import shared
shared.Building.ensure_relooper(relooper)
-
+
+ settings.setdefault('STRUCT_INFO', cache.get_path('struct_info.compiled.json'))
+ struct_info = settings.get('STRUCT_INFO')
+
+ if not os.path.exists(struct_info):
+ from tools import shared
+ shared.Building.ensure_struct_info(struct_info)
+
emscript(args.infile, settings, args.outfile, libraries, compiler_engine=compiler_engine,
jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)