]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Define BOOST_CONTAINER_USE_STD_EXCEPTIONS on the command-line
authorFred Morcos <fred.morcos@open-xchange.com>
Mon, 27 Nov 2023 10:18:15 +0000 (11:18 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:57 +0000 (13:28 +0100)
This replaces the definition coming through config.h because boost container
implementations seem to trip up on certain build configurations (e.g. debugoptimized).

Additionally, it seems that when this is defined through config.h, boost does not export
the symbols related to boost exceptions to the user but is perfectly happy to throw such
exceptions.

meson/boost/meson.build

index 772708c41f9cc467b53c7b042928f5b4c4505b52..943f0c4d803686822215c8641f520e4a609898fa 100644 (file)
@@ -3,6 +3,7 @@ dep_boost = dependency('boost', version: '>= 1.42', required: true)
 # with C++11.
 have_boost_1_48_0 = dep_boost.version().version_compare('>= 1.48.0')
 conf.set('HAVE_BOOST_GE_148', have_boost_1_48_0, description: 'Boost version >= 1.48.0')
-conf.set('BOOST_CONTAINER_USE_STD_EXCEPTIONS', true, description: 'Boost use std exceptions')
+# conf.set('BOOST_CONTAINER_USE_STD_EXCEPTIONS', true, description: 'Boost use std exceptions')
+add_project_arguments('-DBOOST_CONTAINER_USE_STD_EXCEPTIONS', language: ['c', 'cpp'])
 summary('Boost', dep_boost.found(), bool_yn: true, section: 'Boost')
 summary('Version', dep_boost.version(), section: 'Boost')