Skip to content

Commit

Permalink
Merge pull request #12725 from keymanapp/fix/linux/asserts
Browse files Browse the repository at this point in the history
fix(linux): disable assertions in release builds of ibus-keyman
  • Loading branch information
ermshiperete authored Nov 28, 2024
2 parents b423e81 + 767d7c6 commit 49650d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linux/ibus-keyman/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ project('ibus-keyman', 'c', 'cpp',
# meson doesn't allow us to reference a file outside its root
subdir('resources')

if get_option('buildtype') != 'debug'
# Disable assertions on release builds
defns += ['-DG_DISABLE_ASSERT']
endif

conf = configuration_data()

ibus = dependency('ibus-1.0', version: '>= 1.2.0')
Expand Down
2 changes: 2 additions & 0 deletions linux/ibus-keyman/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ configure_file(

exe = executable(
'ibus-engine-keyman',
c_args: defns,
cpp_args: defns,
sources: [engine_files, util_files],
dependencies: deps,
include_directories: include_dirs,
Expand Down

0 comments on commit 49650d6

Please sign in to comment.