aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-10 16:15:50 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-10 16:15:50 -0800
commitd233c379208c40e0721eceec852182914b26a549 (patch)
treec031784ea0b5af8b86eca394143cb0d4b490e82b /emcc
parented77c3ec7a28b8015f69340330de82b62aeac4a8 (diff)
export memcpy in asm mode so non-asm library functions can use it
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/emcc b/emcc
index e9138abe..4c4c3d97 100755
--- a/emcc
+++ b/emcc
@@ -1114,6 +1114,9 @@ try:
next = final + '.postrinsics.bc'
shared.Building.link([final, memcpy], next)
final = next
+ if shared.Settings.ASM_JS: # export it so other library functions etc. can use it
+ if '_memcpy' not in shared.Settings.EXPORTED_FUNCTIONS:
+ shared.Settings.EXPORTED_FUNCTIONS.append('_memcpy')
if DEBUG: save_intermediate('postrinsics', 'bc')
# Prepare .ll for Emscripten