re-enable LTO

it has weird build issues on my machine, so I turned it off.
This commit is contained in:
2024-04-15 20:27:45 +07:00
parent ecfc104f0f
commit 1eceba427e

View File

@ -23,7 +23,7 @@ if cc.get_id() != 'msvc'
add_project_arguments( add_project_arguments(
'-ffunction-sections', '-ffunction-sections',
'-fdata-sections', '-fdata-sections',
# '-flto', # Enable Link-Time Optimization '-flto', # Enable Link-Time Optimization
language: 'c', language: 'c',
) )
@ -32,7 +32,7 @@ if cc.get_id() != 'msvc'
'-Wl,--exclude-all-symbols', '-Wl,--exclude-all-symbols',
'-Wl,--gc-sections', '-Wl,--gc-sections',
'-static-libgcc', '-static-libgcc',
# '-flto', # Enable Link-Time Optimization '-flto', # Enable Link-Time Optimization
'-Wl,-s', # Strip debug symbols '-Wl,-s', # Strip debug symbols
language: 'c', language: 'c',
) )