From 12dce3ef7ddf5a53d90a794a4645dea13a67f2bb Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 29 Nov 2018 09:30:27 +0100 Subject: Clang: Work around eating memory with gcc/clang/-fno-rtti/boost Boost recognizes a misconfigured compiler in rtti emulation mode (-fno-rtti) as our libclang command line is special. Even worse, it does not seem to stop instantiating templates and allocating memory afterwards. For the former to fix, we need to rework our command line (in master). The latter can be work arounded by defining BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING with a value for gcc/clang. See also https://www.boost.org/doc/libs/1_64_0/doc/html/BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING.html Task-number: QTCREATORBUG-19543 Change-Id: Iddb5be2d1f1966018e5ab535a8f7475fe7911284 Reviewed-by: Ivan Donchevskii --- src/plugins/cpptools/compileroptionsbuilder.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/compileroptionsbuilder.h') diff --git a/src/plugins/cpptools/compileroptionsbuilder.h b/src/plugins/cpptools/compileroptionsbuilder.h index 67a7345a30..66202e72d6 100644 --- a/src/plugins/cpptools/compileroptionsbuilder.h +++ b/src/plugins/cpptools/compileroptionsbuilder.h @@ -87,6 +87,7 @@ public: void addMsvcCompatibilityVersion(); void undefineCppLanguageFeatureMacrosForMsvc2015(); void addDefineFunctionMacrosMsvc(); + void addBoostWorkaroundMacros(); void addProjectConfigFileInclude(); void undefineClangVersionMacrosForMsvc(); -- cgit v1.2.1