Boost logo

Boost-Build :

From: Phillip Seaver (phil_at_[hidden])
Date: 2006-06-21 14:01:05


Sohail Somani wrote:
> Hi,
>
> Boost.Build V2 (Milestone 10)
> Boost.Jam 03.1.12
>
> If you do a single threaded build with msvc8, you will get messages
> like:
>
> cl : Command line warning D9002 : ignoring unknown option '/ML'
>
> The reason is that Microsoft doesn't support the single threaded
> statically linked CRT anymore.
>
> Anyway, in msvc.jam, the lines:
>
> flags msvc.compile CFLAGS
> <runtime-debugging>off/<runtime-link>static/<threading>single : /ML ;
> flags msvc.compile CFLAGS
> <runtime-debugging>on/<runtime-link>static/<threading>single : /MLd ;
>
> Should be changed to be /MT and /MTd respectively for msvc8 and up.

I would think it would be a bad idea to compile everything else as
single-threaded and link against the multi-threaded CRT. It sounds like
<threading>single should fail to compile for msvc8.

If someone does that, they should probably also disallow
<threading>single with <runtime-link>shared, since there's no such CRT
(AFAIK) in msvc-6 and 7.x

Phillip


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