diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-10 10:38:23 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-10 10:38:23 -0800 |
commit | a3c256bf34521cbb250e6a136b2a7c98d1b9b489 (patch) | |
tree | 50005da3ce60697560d4e00b7b77c47bae49bbbd /src | |
parent | 987fd9f26b3355dfdba2832e6cf5721b53798068 (diff) |
link in memcpy after opts and lto if it shows up only at that time
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index 74425e4f..f9cab641 100644 --- a/src/library.js +++ b/src/library.js @@ -4202,8 +4202,10 @@ LibraryManager.library = { memcpy: function (dest, src, num) { // simple version, in general it should not be used - we should pull it in from libc -#if ASSERTIONS - Module.printErr('warning: library.js memcpy should not be running!'); + if (!_memcpy.shown) { + _memcpy.shown = true; + Module.printErr('warning: library.js memcpy should not be running, it is only for testing!'); + } #endif while (num--) { HEAP8[dest++] = HEAP8[src++]; |