Skip to content

Commit e1a0787

Browse files
committed
Enable LTO
1 parent 7aa4d32 commit e1a0787

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ project('amast', 'c',
3131
'warning_level=3',
3232
'buildtype=release',
3333
'werror=true',
34+
'b_lto=true',
3435
'default_library=static',
3536
'b_sanitize=address,undefined'
3637
],

tools/unity/meson.build

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ if unit_test
107107
amast_src[1], # 'amast_test.c'
108108
],
109109
include_directories: libs_inc,
110-
c_args: [
111-
'-flto=auto',
112-
'-O2',
113-
'-ffunction-sections', '-fdata-sections'
114-
],
115-
link_args: ['-Wl,--gc-sections'],
116110
dependencies: [libm_dep, libassert_dep]
117111
)
118112
test('unity', e)

0 commit comments

Comments
 (0)