From 79d9884141f90a9e93fb2ec8faef15e460dd3442 Mon Sep 17 00:00:00 2001 From: David Steele Date: Mon, 25 Jul 2022 09:39:54 -0400 Subject: [PATCH] Move release build check to src/meson.build. This allows the C harness to perform release builds which are required for some tests. --- meson.build | 7 ------- test/src/meson.build | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index 7fc5db56ff..fca4b39e0d 100644 --- a/meson.build +++ b/meson.build @@ -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 #################################################################################################################################### diff --git a/test/src/meson.build b/test/src/meson.build index ea59ca6fef..365cb69fcd 100644 --- a/test/src/meson.build +++ b/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 ####################################################################################################################################