summaryrefslogtreecommitdiff
path: root/tools/system_libs.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-05-15 00:29:26 +0300
committerJukka Jylänki <jujjyl@gmail.com>2014-05-23 02:20:06 +0300
commita12a34e1db61cab6863f08e974750ed4c315379c (patch)
treec99f7b912e395001e37d825164553af1d0dde7ef /tools/system_libs.py
parentba02f957f79391d205348695c932e4f99e5adc32 (diff)
Migrate to using musl libc sscanf to improve performance. Keep the existing JS vfscanf for Emscripten FS compatibility, and add the musl-specific version to be used when called from sscanf and vsscanf.
Diffstat (limited to 'tools/system_libs.py')
-rw-r--r--tools/system_libs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/system_libs.py b/tools/system_libs.py
index bc81a351..7e2b1f02 100644
--- a/tools/system_libs.py
+++ b/tools/system_libs.py
@@ -249,6 +249,7 @@ def calculate(temp_files, in_temp, stdout, stderr):
'tre-mem.c',
]],
['stdio', [
+ '__string_read.c',
'fwprintf.c',
'swprintf.c',
'vfwprintf.c',
@@ -257,6 +258,9 @@ def calculate(temp_files, in_temp, stdout, stderr):
'wprintf.c',
'fputwc.c',
'fputws.c',
+ 'sscanf.c',
+ 'vfscanf.c',
+ 'vsscanf.c',
]],
['stdlib', [
'atoll.c',