Re: Building Boost without RTTI
Marcel Raad via Boost-build <[email protected]>
| Newsgroups | gmane.comp.lib.boost.build |
|---|---|
| Message-ID | <[email protected]> |
Hi Lucas, > -----Original Message----- > From: Boost-build <[email protected]> On Behalf Of > Lucas Le Gouic via Boost-build > Sent: Mittwoch, 21. März 2018 16:03 > To: [email protected] > Cc: Lucas Le Gouic <[email protected]> > Subject: [Boost-build] Building Boost without RTTI > > I've successfully built boost using "b2 toolset=msvc > --build-type=complete stage" but RTTI are enabled by default from what I > understood and my project requier RTTI to be disabled. > However, I can't find any option to do this in b2.exe --help. most of Boost cannot be built without RTTI. However, most of it can be used without RTTI, at least in release mode. I've never done this in debug mode. So what I'm doing is building Boost with b2.exe --with-... define="BOOST_NO_RTTI" so that it behaves as if RTTI were disabled except if it's really needed. This doesn't really feel clean, but it works for me. Alternatively, you could pass cxxflags="/GR-", but some libraries will just crash then. Marcel _______________________________________________ Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build