aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-22 17:59:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-22 17:59:33 -0800
commit6eaf330462b1da305acaf9ba5d02dea3a34ae711 (patch)
tree9dc06fea37d31e6a0ad45bd6851282b63a0a695a /tools
parent9dcd81dcdc3044cba82d856dd3d583d6434907ca (diff)
better temp dir definition and usage, and more debugging output in emcc
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index adf3004e..86a6463f 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -110,6 +110,15 @@ EXEC_LLVM = path_from_root('tools', 'exec_llvm.py')
VARIABLE_ELIMINATOR = path_from_root('tools', 'eliminator', 'eliminator.coffee')
JS_OPTIMIZER = path_from_root('tools', 'js-optimizer.js')
+# Temp dir
+
+EMSCRIPTEN_TEMP_DIR = os.path.join(TEMP_DIR, 'emscripten_test')
+if not os.path.exists(EMSCRIPTEN_TEMP_DIR):
+ try:
+ os.makedirs(EMSCRIPTEN_TEMP_DIR)
+ except Exception, e:
+ print >> sys.stderr, 'Warning: Could not create temp dir (%s): %s' % (EMSCRIPTEN_TEMP_DIR, str(e))
+
# ~/.emscripten stuff
try: