aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-12 16:26:22 -0500
committerAlon Zakai <alonzakai@gmail.com>2012-10-12 16:26:22 -0500
commit3a156a34e83fa301b8abbac6effdb5bd21d9be11 (patch)
treec49e684dec9b04496ccd256ad2a1e6e420178e47 /emcc
parent217dbc2b3f0f5eb483790ca6836fa58a09936030 (diff)
get almost all of embind test passing
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index f3ecb21e..42a49cf9 100755
--- a/emcc
+++ b/emcc
@@ -986,7 +986,10 @@ try:
# Add bindings glue if used
if bind:
if DEBUG: print >> sys.stderr, 'emcc: adding embind glue'
- src = open(final).read().replace('// {{PRE_RUN_ADDITIONS}}', '// {{PRE_RUN_ADDITIONS}}\n' + open(shared.path_from_root('src', 'embind', 'embind.js')).read())
+ src = open(final).read().replace('// {{PRE_RUN_ADDITIONS}}', '// {{PRE_RUN_ADDITIONS}}\n' +
+ open(shared.path_from_root('src', 'embind', 'embind.js')).read() +
+ open(shared.path_from_root('src', 'embind', 'emval.js')).read()
+ )
final += '.bd.js'
open(final, 'w').write(src)
if DEBUG: save_intermediate('bind')