aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
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