dcavalca / rpms / systemd

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