summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 185224a3..4cc7b7c8 100644
--- a/meson.build
+++ b/meson.build
@@ -30,8 +30,7 @@ foreach f : flags
endif
endforeach
-if get_option('lto')
- add_project_arguments('-flto', language: 'c')
+if get_option('b_lto')
add_project_arguments('-Werror=odr', language: 'c')
add_project_arguments('-Werror=lto-type-mismatch', language: 'c')
add_project_arguments('-Werror=strict-aliasing', language: 'c')