Skip to content

Commit

Permalink
Move release build check to src/meson.build.
Browse files Browse the repository at this point in the history
This allows the C harness to perform release builds which are required for some tests.
  • Loading branch information
dwsteele committed Jul 25, 2022
1 parent c267ba5 commit 79d9884
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions meson.build
Expand Up @@ -23,13 +23,6 @@ project(
# Selected C compiler
cc = meson.get_compiler('c')

####################################################################################################################################
# Error on release builds since we do not want anyone using meson for production yet
####################################################################################################################################
if get_option('buildtype') != 'debug' and get_option('buildtype') != 'debugoptimized'
error('meson is currently not supported for release builds')
endif

####################################################################################################################################
# OS-specific settings
####################################################################################################################################
Expand Down
7 changes: 7 additions & 0 deletions test/src/meson.build
@@ -1,3 +1,10 @@
####################################################################################################################################
# Error on release builds since we do not want anyone using meson for production yet
####################################################################################################################################
if get_option('buildtype') != 'debug' and get_option('buildtype') != 'debugoptimized'
error('meson is currently not supported for release builds')
endif

####################################################################################################################################
# Write configuration
####################################################################################################################################
Expand Down

0 comments on commit 79d9884

Please sign in to comment.