aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-11 10:21:29 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-10-11 10:21:29 -0400
commit6565e29c1fb27bf964849ea22727c7ba46c5cff9 (patch)
tree78e2877b3573f1ed0635f6e8d9ba10df455a78c2 /emscripten.py
parent3a91f843e7b8192c5c6d2e047f55f591428f2987 (diff)
ignore ; Module line, which can confuse jcache as it contains the current temp dir
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 89a54fa9..1abbedd1 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -116,7 +116,9 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
meta = ''
meta_start = -1
- func_start = 0
+ start = ll.find('\n') if ll[0] == ';' else 0 # ignore first line, which contains ; ModuleID = '/dir name'
+
+ func_start = start
last = func_start
while 1:
last = func_start