aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-16 19:22:40 +1100
committerallusive-dev <[email protected]>2023-11-16 19:22:40 +1100
commit7f124d6369cfbfb1af06327d5505bfbae4a0f757 (patch)
tree1ab89c8275714416d317bd3aae214540355d425a
parentUpdate README.md (diff)
downloadcompfy-7f124d6369cfbfb1af06327d5505bfbae4a0f757.tar.xz
compfy-7f124d6369cfbfb1af06327d5505bfbae4a0f757.zip
update build
-rw-r--r--meson.build10
1 files changed, 4 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index 1572706..cd03f4b 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
project('compfy', 'c', version: '1.6.5',
- default_options: ['c_std=c11', 'warning_level=1'])
+ default_options: ['c_std=c11', 'warning_level=1', 'buildtype=release'])
cc = meson.get_compiler('c')
@@ -8,11 +8,9 @@ version = 'v'+meson.project_version()
add_global_arguments('-DCOMPFY_VERSION="'+version+'"', language: 'c')
-add_global_arguments('-DNDEBUG', language: 'c')
-
-# if get_option('buildtype') == 'release'
-# add_global_arguments('-DNDEBUG', language: 'c')
-# endif
+if get_option('buildtype') == 'release'
+ add_global_arguments('-DNDEBUG', language: 'c')
+endif
if get_option('sanitize')
sanitizers = ['address', 'undefined']