From 9e710e7f988dee6d794c8f0a13e83b9b47a764db Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Sat, 12 Mar 2022 17:40:04 -0800 Subject: Disable boost exceptions There should be no case where we're throwing an exception through an asio descriptor or through the io_context, so having these options enabled don't do us much good. Tested: Code compiles, removes almost 7kB from the bmcweb binary size. Signed-off-by: Ed Tanous Change-Id: I91df03fd0dcb942bdfaa420ad8c0c1f8b0f634cc --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index f6fb323933..8e6e83a068 100644 --- a/meson.build +++ b/meson.build @@ -232,7 +232,8 @@ cxx.get_supported_arguments([ '-DBOOST_ASIO_SEPARATE_COMPILATION', '-DBOOST_BEAST_SEPARATE_COMPILATION', '-DBOOST_BEAST_USE_STD_STRING_VIEW', - '-DJSON_NOEXCEPTION' + '-DBOOST_EXCEPTION_DISABLE', + '-DJSON_NOEXCEPTION', ]), language : 'cpp') -- cgit v1.2.3