From 10a67dbea43f602961405ca6114b01f2fdb6bb11 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Sun, 11 Feb 2018 15:02:25 +0000 Subject: [PATCH] On FreeBSD, build without -fno-rtti. It seems to stop exception handling from being able to recognise which exception was thrown. --- mconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mconfig b/mconfig index 68a0b58..0f65218 100644 --- a/mconfig +++ b/mconfig @@ -23,8 +23,9 @@ SANITIZEOPTS=-fsanitize=address,undefined # (shutdown command not available for OpenBSD yet). # FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt +# Cannot use -fno-rtti: apparently prevents exception handling from working properly. #CXX=clang++ -#CXXOPTS=-std=c++11 -Os -Wall -fno-rtti +#CXXOPTS=-std=c++11 -Os -Wall #LDFLAGS=-lrt #BUILD_SHUTDOWN=no #SANITIZEOPTS=-fsanitize=address,undefined -- 2.25.1