Boost logo

Boost-Build :

From: Alex Besogonov (cyberax_at_[hidden])
Date: 2006-10-16 05:08:11


Vladimir Prus wrote:
> I don't use msvc, so it's no suprised. In fact, I never though it has whole
> program optimization. Does it work even if you compile each file separately?
> Will linker to WPO? Or you need to pass all .cpp files at once to the
> compiler -- like is the case with gcc.
During WPO in MSVC cpp-files are compiled to some form of intermediate
code and actual codegeneration is performed during _linking_ (that's why
WPO is sometimes called LTCG - Link-Time CodeGeneration).

It's possible to mix WPO and non-WPO objects without problems.

> But if /Yu is absent, will #include "pch.hpp" work?
Sure.

-- 
With respect,
             Alex Besogonov (cyberax_at_[hidden])

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