v12-0004-meson-Consider-an-insufficient-C-compiler-a-warn.patch
text/x-patch
Filename: v12-0004-meson-Consider-an-insufficient-C-compiler-a-warn.patch
Type: text/x-patch
Part: 3
Message:
Re: Make copyObject work in C++
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v12-0004
Subject: meson: Consider an insufficient C++ compiler a warning
| File | + | − |
|---|---|---|
| meson.build | 2 | 1 |
From 3eeeabc4335d2ceef777b20bb1460a38a82baf2d Mon Sep 17 00:00:00 2001
From: Jelte Fennema-Nio <postgres@jeltef.nl>
Date: Mon, 30 Mar 2026 00:45:53 +0200
Subject: [PATCH v12 4/4] meson: Consider an insufficient C++ compiler a
warning
Meson and configure were handling the case of a C++ compiler with an
insufficient feature set differently. In configure, it would be a
warning, but meson would throw a hard error. This makes it a warning in
meson too.
---
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index bcad5f4fc01..ef1d7ed9a57 100644
--- a/meson.build
+++ b/meson.build
@@ -673,7 +673,8 @@ if have_cxx and not cxx.compiles(cxx_features_test, name: 'C++11 with designated
endif
endforeach
if not cxx_features_ok
- error('C++ compiler does not support C++11 with designated initializers')
+ warning('C++ compiler does not support C++11 with designated initializers')
+ have_cxx = false
endif
endif
--
2.53.0