aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson.build
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2022-07-02 02:48:21 +0300
committerGitHub <[email protected]>2022-07-02 02:48:21 +0300
commit9ee14eb4452ea166f1b1c8517939388d413387e5 (patch)
tree09343d0d4f2ab33902c7af3d9c2f9b99686091f7 /meson.build
parente77f451e279a5c418543b1cfa1101cde79f9e503 (diff)
downloadHyprland-9ee14eb4452ea166f1b1c8517939388d413387e5.tar.gz
Hyprland-9ee14eb4452ea166f1b1c8517939388d413387e5.zip
meson: build with -O3 (#291)
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 18a4c709..00628761 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,15 @@
project('Hyprland', 'cpp', 'c',
version : '0.6.2beta',
- default_options : ['warning_level=3', 'cpp_std=c++20', 'default_library=static'])
+ default_options : ['warning_level=2', 'cpp_std=c++20', 'default_library=static', 'optimization=3'])
+
+add_project_arguments(
+ [
+ '-Wno-unused-parameter',
+ '-Wno-unused-value',
+ '-Wno-missing-field-initializers',
+ '-Wno-narrowing',
+ ],
+ language: 'cpp')
wlroots = subproject('wlroots', default_options: ['examples=false'])
have_xwlr = wlroots.get_variable('features').get('xwayland')