[PATCH xserver] meson: Don't forget to define DEBUG!

Jon Turney jon.turney at dronecode.org.uk
Thu Oct 12 15:33:29 UTC 2017


On 12/10/2017 00:15, Lyude Paul wrote:
> Signed-off-by: Lyude Paul <lyude at redhat.com>
> ---
>   include/meson.build | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/include/meson.build b/include/meson.build
> index 90f8de3cb..8894885c6 100644
> --- a/include/meson.build
> +++ b/include/meson.build
> @@ -196,6 +196,9 @@ conf_data.set('XvMCExtension', build_xv)
>   
>   conf_data.set('HAVE_SHA1_IN_LIBNETTLE', '1') # XXX
>   
> +enable_debugging = (get_option('buildtype') == 'debug') or (get_option('buildtype') == 'debugoptimized')

It seems you could also write this as:

enable_debugging = get_option('buildtype').startswith('debug')




More information about the xorg-devel mailing list