Skip to content

Commit 4f9f1ff

Browse files
committed
meson: build mpv.com with -Os
LLVM even in freestanding build required memset/memcpy/memmove to be implemented. We don't use them directly but the calls are generated from the code, which are later optimized away. Since this suppose to be small utility application, we can always optimize it. Fixes: #17664
1 parent 2ad46a3 commit 4f9f1ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ if get_option('cplayer')
18551855
if win32
18561856
if get_option('win32-subsystem') != 'console'
18571857
wrapper_sources = 'osdep/win32-console-wrapper.c'
1858-
executable('mpv', wrapper_sources, c_args: ['-municode', '-fno-asynchronous-unwind-tables', '-fno-stack-protector'],
1858+
executable('mpv', wrapper_sources, c_args: ['-municode', '-fno-asynchronous-unwind-tables', '-fno-stack-protector', '-Os'],
18591859
link_args: ['-municode', '-nostartfiles', '-nodefaultlibs'],
18601860
override_options: ['b_sanitize=none'],
18611861
name_suffix: 'com', install: true)

0 commit comments

Comments
 (0)