aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-30 13:44:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-30 13:44:29 -0700
commitb01d44eb552e77f3a4ff3a0a7cfd19de5082e72c (patch)
treec4e274dc3438c5f233151b15042a4f8b40acfe2c /tools/shared.py
parent2725cfa316f2749fa6dbedc34e23f5445dfbcf7f (diff)
parent2370dd4b6f32b9be38c736b3060ba690a720483f (diff)
Merge branch 'incoming' of github.com:ngld/emscripten into incoming1.6.4
Conflicts: AUTHORS src/library_sdl.js tools/shared.py
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 63dcefca..c5df34f1 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -314,7 +314,7 @@ def find_temp_directory():
# we re-check sanity when the settings are changed)
# We also re-check sanity and clear the cache when the version changes
-EMSCRIPTEN_VERSION = '1.6.3'
+EMSCRIPTEN_VERSION = '1.6.4'
def generate_sanity():
return EMSCRIPTEN_VERSION + '|' + get_llvm_target() + '|' + LLVM_ROOT
@@ -364,7 +364,7 @@ def check_sanity(force=False):
logging.critical('Node.js (%s) does not seem to work, check the paths in %s' % (NODE_JS, EM_CONFIG))
sys.exit(1)
- for cmd in [CLANG, LINK_CMD[0], LLVM_AR, LLVM_OPT, LLVM_AS, LLVM_DIS, LLVM_NM]:
+ for cmd in [CLANG, LINK_CMD[0], LLVM_AR, LLVM_OPT, LLVM_AS, LLVM_DIS, LLVM_NM, LLVM_INTERPRETER]:
if not os.path.exists(cmd) and not os.path.exists(cmd + '.exe'): # .exe extension required for Windows
logging.critical('Cannot find %s, check the paths in %s' % (cmd, EM_CONFIG))
sys.exit(1)
@@ -1460,7 +1460,15 @@ class Building:
logging.error('bootstrapping relooper failed. You may need to manually create relooper.js by compiling it, see src/relooper/emscripten')
try_delete(relooper) # do not leave a phase-1 version if phase 2 broke
1/0
-
+
+ @staticmethod
+ def ensure_struct_info(info_path):
+ if os.path.exists(info_path): return
+ Cache.ensure()
+
+ import gen_struct_info
+ gen_struct_info.main(['-qo', info_path, path_from_root('src/struct_info.json')])
+
@staticmethod
def preprocess(infile, outfile):
'''