aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-20 21:01:15 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-20 21:01:15 -0700
commit68760ff153ef0835f72facf4d6ad07e5bae23b72 (patch)
treea44fc10eeecf5303971a8bfd4cef9ee27ae93e3e /emscripten.py
parent9e1a93bcd03ee27c867eefa7c946acadb35c5b4f (diff)
do not save broken pre output to jcache
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py
index c9d8505d..1b62d977 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -161,6 +161,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
open(pre_file, 'w').write(pre_input)
out = jsrun.run_js(compiler, compiler_engine, [settings_file, pre_file, 'pre'] + libraries, stdout=subprocess.PIPE,
cwd=path_from_root('src'))
+ assert '//FORWARDED_DATA:' in out, 'Did not receive forwarded data in pre output - process failed?'
if jcache:
if DEBUG: print >> sys.stderr, ' saving pre to jcache'
jcache.set(shortkey, keys, out)