1From 55fc307d23d657b52433d1c8508467d0589754d5 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sat, 16 Oct 2021 15:45:57 +0200 4Subject: [PATCH] meson.build: make C++ optional 5 6Remove cpp from meson project statement to make C++ optional and avoid 7the following build failure when the toolchain does not provide a C++ 8compiler: 9 10../output-1/build/usbredir-0.11.0/meson.build:1:0: ERROR: Unknown compiler(s): [['/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++']] 11The following exception(s) were encountered: 12Running "/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++ --version" gave "[Errno 2] No such file or directory: '/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++'" 13 14Indeed C++ is only required for fuzzing which is already handled by 15meson through add_languages('cpp', required: true) 16 17Fixes: 18 - http://autobuild.buildroot.org/results/eca1d8a2b73a769354ab1d24c7996be30f152138 19 20Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 21[Upstream status: 22https://gitlab.freedesktop.org/spice/usbredir/-/merge_requests/55] 23--- 24 meson.build | 2 +- 25 1 file changed, 1 insertion(+), 1 deletion(-) 26 27diff --git a/meson.build b/meson.build 28index 49dbce4..ca19f22 100644 29--- a/meson.build 30+++ b/meson.build 31@@ -1,4 +1,4 @@ 32-project('usbredir', 'c', 'cpp', 33+project('usbredir', 'c', 34 version: '0.11.0', 35 license: 'LGPLv2.1+', 36 meson_version : '>= 0.53', 37-- 382.33.0 39 40