This commit is contained in:
mborgerson 2025-04-17 19:33:27 +03:00 committed by GitHub
commit 9a31104ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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.