Blame SOURCES/0057-meson-rename-Ddebug-to-Ddebug-extra.patch

a3e2b5
From 9c1b72de44e68ad80be7c0b98df110e7b127072d Mon Sep 17 00:00:00 2001
a3e2b5
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
a3e2b5
Date: Sun, 19 Aug 2018 19:11:30 +0200
a3e2b5
Subject: [PATCH] meson: rename -Ddebug to -Ddebug-extra
a3e2b5
a3e2b5
Meson added -Doptimization and -Ddebug options, which obviously causes
a3e2b5
a conflict with our -Ddebug options. Let's rename it.
a3e2b5
a3e2b5
Fixes #9883.
a3e2b5
a3e2b5
Cherry-picked from: 8f6b442a78d0b485f044742ad90b2e8271b4e68e
a3e2b5
---
a3e2b5
 meson.build       | 2 +-
a3e2b5
 meson_options.txt | 2 +-
a3e2b5
 2 files changed, 2 insertions(+), 2 deletions(-)
a3e2b5
a3e2b5
diff --git a/meson.build b/meson.build
a3e2b5
index f308db2631..ebc55872c9 100644
a3e2b5
--- a/meson.build
a3e2b5
+++ b/meson.build
a3e2b5
@@ -769,7 +769,7 @@ substs.set('DEBUGTTY', get_option('debug-tty'))
a3e2b5
 
a3e2b5
 enable_debug_hashmap = false
a3e2b5
 enable_debug_mmap_cache = false
a3e2b5
-foreach name : get_option('debug')
a3e2b5
+foreach name : get_option('debug-extra')
a3e2b5
         if name == 'hashmap'
a3e2b5
                 enable_debug_hashmap = true
a3e2b5
         elif name == 'mmap-cache'
a3e2b5
diff --git a/meson_options.txt b/meson_options.txt
a3e2b5
index ab2a658713..5716f45ccf 100644
a3e2b5
--- a/meson_options.txt
a3e2b5
+++ b/meson_options.txt
a3e2b5
@@ -46,7 +46,7 @@ option('debug-shell', type : 'string', value : '/bin/sh',
a3e2b5
        description : 'path to debug shell binary')
a3e2b5
 option('debug-tty', type : 'string', value : '/dev/tty9',
a3e2b5
        description : 'specify the tty device for debug shell')
a3e2b5
-option('debug', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
a3e2b5
+option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache'], value : [],
a3e2b5
        description : 'enable extra debugging')
a3e2b5
 option('memory-accounting-default', type : 'boolean',
a3e2b5
        description : 'enable MemoryAccounting= by default')