Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/codesize/test_codesize_hello_dylink_all.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"a.out.js": 244882,
"a.out.nodebug.wasm": 577841,
"total": 822723,
"a.out.nodebug.wasm": 577863,
"total": 822745,
"sent": [
"IMG_Init",
"IMG_Load",
Expand Down
14 changes: 7 additions & 7 deletions tools/system_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ def can_use(self):
class libsockets(MuslInternalLibrary, MTLibrary):
name = 'libsockets'

cflags = ['-Os', '-fno-inline-functions', '-fno-builtin', '-Wno-shift-op-parentheses']
cflags = ['-Os', '-fno-builtin', '-Wno-shift-op-parentheses']

def get_files(self):
return files_in_path(
Expand All @@ -1558,7 +1558,7 @@ def can_use(self):
class libsockets_proxy(MTLibrary):
name = 'libsockets_proxy'

cflags = ['-Os', '-fno-inline-functions']
cflags = ['-Os']

def get_files(self):
return [utils.path_from_root('system/lib/websocket/websocket_to_posix_socket.c')]
Expand Down Expand Up @@ -1902,7 +1902,7 @@ def can_use(self):
class libal(Library):
name = 'libal'

cflags = ['-Os', '-fno-inline-functions']
cflags = ['-Os']
src_dir = 'system/lib'
src_files = ['al.c']

Expand All @@ -1913,7 +1913,7 @@ class libGL(MTLibrary):
src_dir = 'system/lib/gl'
src_files = ['gl.c', 'webgl1.c', 'libprocaddr.c', 'webgl2.c']

cflags = ['-Oz', '-fno-inline-functions']
cflags = ['-Oz']

def __init__(self, **kwargs):
self.is_legacy = kwargs.pop('is_legacy')
Expand Down Expand Up @@ -2107,7 +2107,7 @@ class libhtml5(Library):
name = 'libhtml5'

includes = ['system/lib/libc']
cflags = ['-Oz', '-fno-inline-functions']
cflags = ['-Oz']
src_dir = 'system/lib/html5'
src_glob = '*.c'

Expand Down Expand Up @@ -2196,7 +2196,7 @@ class libstandalonewasm(MuslInternalLibrary):
# LTO defeats the weak linking trick used in __original_main.c
force_object_files = True

cflags = ['-Os', '-fno-inline-functions', '-fno-builtin']
cflags = ['-Os', '-fno-builtin']
src_dir = 'system/lib'

def __init__(self, **kwargs):
Expand Down Expand Up @@ -2270,7 +2270,7 @@ def can_use(self):

class libjsmath(Library):
name = 'libjsmath'
cflags = ['-Os', '-fno-inline-functions']
cflags = ['-Os']
src_dir = 'system/lib'
src_files = ['jsmath.c']

Expand Down