meson.build: add -f{function,data}-sections to C++ as well

By accident, this was only enabled for C.
This commit is contained in:
Max Kellermann 2020-01-14 17:44:44 +01:00
parent fada4aa529
commit ce7ec2b3f5
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ test_ldflags = [
] ]
if get_option('buildtype') != 'debug' if get_option('buildtype') != 'debug'
test_cxxflags += [
'-ffunction-sections',
'-fdata-sections',
]
test_cflags += [ test_cflags += [
'-ffunction-sections', '-ffunction-sections',
'-fdata-sections', '-fdata-sections',