daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
4eda52
From 7d7562db194f6b521d93ef370176922d0ac68331 Mon Sep 17 00:00:00 2001
4eda52
From: Dan Streetman <ddstreet@canonical.com>
4eda52
Date: Fri, 3 Sep 2021 12:43:33 -0400
4eda52
Subject: [PATCH] meson.build: change operator combining bools from + to and
4eda52
4eda52
upstream meson stopped allowing combining boolean with the plus
4eda52
operator, and now requires using the logical and operator
4eda52
4eda52
reference:
4eda52
https://github.com/mesonbuild/meson/commit/43302d3296baff6aeaf8e03f5d701b0402e37a6c
4eda52
4eda52
Fixes: #20632
4eda52
(cherry picked from commit c29537f39e4f413a6cbfe9669fa121bdd6d8b36f)
4eda52
4eda52
Related: #2017035
4eda52
---
4eda52
 meson.build | 2 +-
4eda52
 1 file changed, 1 insertion(+), 1 deletion(-)
4eda52
4eda52
diff --git a/meson.build b/meson.build
4eda52
index d28f04607a..f21ec5bb94 100644
4eda52
--- a/meson.build
4eda52
+++ b/meson.build
4eda52
@@ -35,7 +35,7 @@ conf.set10('BUILD_MODE_DEVELOPER', get_option('mode') == 'developer',
4eda52
 
4eda52
 want_ossfuzz = get_option('oss-fuzz')
4eda52
 want_libfuzzer = get_option('llvm-fuzz')
4eda52
-if want_ossfuzz + want_libfuzzer > 1
4eda52
+if want_ossfuzz and want_libfuzzer
4eda52
         error('only one of oss-fuzz or llvm-fuzz can be specified')
4eda52
 endif
4eda52