mirror of https://github.com/xemu-project/xemu.git
meson: Trim unreferenced functions, data
This commit is contained in:
parent
fdb78c5dbd
commit
1777ac72a7
|
@ -353,6 +353,10 @@ qemu_common_flags = [
|
|||
qemu_cflags = []
|
||||
qemu_ldflags = []
|
||||
|
||||
# Trim unreferenced functions, data
|
||||
qemu_common_flags += ['-ffunction-sections', '-fdata-sections']
|
||||
qemu_ldflags += '-Wl,--gc-sections'
|
||||
|
||||
if host_os == 'darwin'
|
||||
# Disable attempts to use ObjectiveC features in os/object.h since they
|
||||
# won't work when we're compiling with gcc as a C compiler.
|
||||
|
|
Loading…
Reference in New Issue