summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-21 10:04:23 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-22 11:05:17 +0200
commitb8ee3493a54794ca1bbd84d62b4d9f7041fcfddc (patch)
treef5225f6fc7787a2862ac0c0e59b2a27f025e5c56 /meson.build
parenttest-path: start infinite sleep instead of a short command (diff)
downloadsystemd-b8ee3493a54794ca1bbd84d62b4d9f7041fcfddc.tar.xz
systemd-b8ee3493a54794ca1bbd84d62b4d9f7041fcfddc.zip
meson: convert developer_mode boolean to an enum
I initially changed this to add a third state. But even with two values having an explicit name instead of just 0/1 is mode descriptive.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 7c2d4e8b10..307d1bd5f7 100644
--- a/meson.build
+++ b/meson.build
@@ -38,8 +38,8 @@ relative_source_path = run_command('realpath',
project_source_root).stdout().strip()
conf.set_quoted('RELATIVE_SOURCE_PATH', relative_source_path)
-conf.set10('DEVELOPER_MODE', get_option('mode') == 'developer',
- description : 'enable additional checks only suitable in development')
+conf.set('BUILD_MODE', 'BUILD_MODE_' + get_option('mode').to_upper(),
+ description : 'tailor build to development or release builds')
want_ossfuzz = get_option('oss-fuzz')
want_libfuzzer = get_option('llvm-fuzz')