aboutsummaryrefslogtreecommitdiff
path: root/tools/system_libs.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-05-15 13:14:16 +0300
committerJukka Jylänki <jujjyl@gmail.com>2014-05-23 02:20:06 +0300
commit210bff95040083cdbcdd13b38b2ce190f644528f (patch)
treeb67016280ff0710f702554c42fd1c56ae098686d /tools/system_libs.py
parent1e0f6cfda1a48eccc3adf300d4eee71d157cbb7b (diff)
Migrate to using musl libc sprintf family to gain compiled asm.js performance. Keep a copy of handwritten vfprintf and fprintf around to be compatible with the Emscripten filesystem IO library. Also migrate frexp which sprintf depends on to musl libc.
Diffstat (limited to 'tools/system_libs.py')
-rw-r--r--tools/system_libs.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/system_libs.py b/tools/system_libs.py
index 7e2b1f02..d6b44efb 100644
--- a/tools/system_libs.py
+++ b/tools/system_libs.py
@@ -199,6 +199,9 @@ def calculate(temp_files, in_temp, stdout, stderr):
'__cosdf.c',
'__sin.c',
'__sindf.c',
+ 'frexp.c',
+ 'frexpf.c',
+ 'frexpl.c',
'ilogb.c',
'ilogbf.c',
'ilogbl.c',
@@ -250,6 +253,7 @@ def calculate(temp_files, in_temp, stdout, stderr):
]],
['stdio', [
'__string_read.c',
+ 'asprintf.c',
'fwprintf.c',
'swprintf.c',
'vfwprintf.c',
@@ -258,8 +262,14 @@ def calculate(temp_files, in_temp, stdout, stderr):
'wprintf.c',
'fputwc.c',
'fputws.c',
+ 'fwrite.c',
+ 'sprintf.c',
'sscanf.c',
+ 'vasprintf.c',
+ 'vfprintf.c',
'vfscanf.c',
+ 'vsnprintf.c',
+ 'vsprintf.c',
'vsscanf.c',
]],
['stdlib', [