Subject: Re: [Boost-build] Building Boost without RTTI
From: Marcel Raad (Marcel.Raad_at_[hidden])
Date: 2018-03-22 08:34:07
> -----Original Message-----
> From: Boost-build <boost-build-bounces_at_[hidden]> On Behalf Of
> Lucas Le Gouic via Boost-build
> Sent: Mittwoch, 21. März 2018 16:03
> To: boost-build_at_[hidden]
> Cc: Lucas Le Gouic <lucas_at_[hidden]>
> 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.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk