aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-03-15 19:21:14 +0200
committerJukka Jylänki <jujjyl@gmail.com>2014-03-28 23:06:16 -0400
commit67b397e09aef74768ee58b354d5abed75a8d4557 (patch)
tree91fa7f9a1149caa167fca600044418a8c1d53d30 /tools
parent3a501858147d9d31573f24d1b352fbeb52d7c3f2 (diff)
Migrate to using musl 0.9.13 libc qsort for better asm.js performance.
Diffstat (limited to 'tools')
-rw-r--r--tools/system_libs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/system_libs.py b/tools/system_libs.py
index b75aecd9..5fadb60f 100644
--- a/tools/system_libs.py
+++ b/tools/system_libs.py
@@ -28,10 +28,10 @@ def calculate(temp_files, in_temp, stdout, stderr):
o_s = []
prev_cxx = os.environ.get('EMMAKEN_CXX')
if prev_cxx: os.environ['EMMAKEN_CXX'] = ''
- musl_internal_includes = shared.path_from_root('system', 'lib', 'libc', 'musl', 'src', 'internal')
+ musl_internal_includes = ['-I', shared.path_from_root('system', 'lib', 'libc', 'musl', 'src', 'internal'), '-I', shared.path_from_root('system', 'lib', 'libc', 'musl', 'arch', 'js')]
for src in files:
o = in_temp(os.path.basename(src) + '.o')
- execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib', src), '-o', o, '-I', musl_internal_includes] + lib_opts, stdout=stdout, stderr=stderr)
+ execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib', src), '-o', o] + musl_internal_includes + lib_opts, stdout=stdout, stderr=stderr)
o_s.append(o)
if prev_cxx: os.environ['EMMAKEN_CXX'] = prev_cxx
shared.Building.link(o_s, in_temp(lib_filename))
@@ -228,6 +228,7 @@ def calculate(temp_files, in_temp, stdout, stderr):
'ecvt.c',
'fcvt.c',
'gcvt.c',
+ 'qsort.c',
'wcstod.c',
'wcstol.c',
]],