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