Skip to content

Commit

Permalink
add compile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing committed May 31, 2024
1 parent fc093a0 commit b27ef58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ project('iptux', 'cpp',
version: '0.9.1',
default_options: ['warning_level=3', 'cpp_std=c++14'])
add_global_arguments('-Werror=format', language : 'cpp')
if get_option('buildtype') == 'debug'
add_project_arguments('-fsanitize=address', language: 'cpp')
add_project_link_arguments('-fsanitize=address', language: 'cpp')
endif

so_version = '0.9.1'
subdir('src')
subdir('share')
Expand Down

0 comments on commit b27ef58

Please sign in to comment.