On FreeBSD, build without -fno-rtti.
authorDavin McCall <davmac@davmac.org>
Sun, 11 Feb 2018 15:02:25 +0000 (15:02 +0000)
committerDavin McCall <davmac@davmac.org>
Sun, 11 Feb 2018 15:02:25 +0000 (15:02 +0000)
It seems to stop exception handling from being able to recognise which
exception was thrown.

mconfig

diff --git a/mconfig b/mconfig
index 68a0b5868cb63adbc6ec4fab3730a136d84f6782..0f65218132ee9bf5b54744e74d55fb549840dfa7 100644 (file)
--- 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