Skip to content

Commit

Permalink
fix: compilation under newer meson and gcc
Browse files Browse the repository at this point in the history
Resolves #28
  • Loading branch information
JoshStrobl committed Jul 29, 2024
1 parent e22d034 commit 05a9822
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ project(
version: '1.3',
license: [ 'Apache-2.0' ],
default_options: [
'b_lto=false',
'c_std=c11',
'buildtype=release',
'optimization=3',
'werror=true',
'warning_level=3',
],
)
Expand All @@ -17,17 +13,16 @@ gnome = import('gnome')

intltool = find_program('intltool-merge')

# Vala generates bad C code and missing these on gcc 14 will cause FTBFS
# Additionally, Meson 1.4 unhides warnings from valac-generated C code,
# which causes unreadable logspam. Reenables prior behavior.
am_cflags = [
'-Wconversion',
'-Wformat',
'-Wformat-security',
'-Wstack-protector',
'-Wundef',
'-Wuninitialized',
'-fstack-protector',
'-w',
'-Wno-incompatible-pointer-types',
'-Wno-implicit-function-declaration',
]

add_global_arguments(am_cflags, language: 'c')

meson.add_install_script('scripts/mesonPostInstall.sh')

glib_dep = '>= 2.64.0'
Expand Down

0 comments on commit 05a9822

Please sign in to comment.