summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2022-11-17 12:13:14 +0100
committerDave Davenport <qball@blame.services>2022-11-17 12:13:14 +0100
commitc9faa69a1b5b2f01bb6939d11db7cc43d6ec5552 (patch)
treeeecbcdb21553fd1862475b3b5ccda70ef64d1d49
parentc82754307cd160e692b0892490849c11849f9ce4 (diff)
[Build] Use built-in lto option.
-rw-r--r--meson.build3
-rw-r--r--meson_options.txt1
2 files changed, 1 insertions, 3 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')
diff --git a/meson_options.txt b/meson_options.txt
index 09e89b5a..9ca68fc6 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,4 +2,3 @@ option('drun', type: 'boolean', value: true, description: 'Desktop file mode')
option('window', type: 'boolean', value: true, description: 'Window switcher mode')
option('check', type: 'feature', description: 'Build and run libcheck-based tests')
option('imdkit', type: 'boolean', value: true, description: 'IMDKit support')
-option('lto', type: 'boolean', value: false, description: 'Compile with lto')