diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-14 16:48:52 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-14 17:40:48 -0800 |
commit | 3c91f0477956e4d44cdc0ff087c8399d0d0fb731 (patch) | |
tree | 5a8cdf7016aa7a70544255db61004431961444a5 /emscripten.py | |
parent | d298deb2eb2e08369904ea93b90696679338d9fa (diff) |
fix bug with linking bullet without any metadata whatsoever; fixes other.test_static_link on llvm 3.3
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 7c9cbdbe..75e6711a 100755 --- a/emscripten.py +++ b/emscripten.py @@ -117,7 +117,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, last = func_start func_start = ll.find('\ndefine ', func_start) if func_start > last: - pre.append(ll[last:min(func_start+1, meta_start)] + '\n') + pre.append(ll[last:min(func_start+1, meta_start) if meta_start > 0 else func_start+1] + '\n') if func_start < 0: pre.append(ll[last:meta_start] + '\n') break |