Boost logo

Boost-Build :

Subject: Re: [Boost-build] #7706 : cross compiling of threads library - JamFile.v2
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-12-09 10:00:00


AMDG

On 12/09/2012 04:03 AM, Vicente J. Botet Escriba wrote:
> Hi,
>
> in https://svn.boost.org/trac/boost/ticket/7706 it has been suggested to
> make this change
>
> @@ -105,7 +107,7 @@
> local rule default_threadapi ( )
> {
> local api = pthread ;
> - if [ os.name ] = "NT" { api = win32 ; }
> + if <target-os>windows in $(properties) { api = win32 ; }
> return $(api) ;
> }
>
>
> and it doesn't work on MinGW as the test is always false. Is target-os
> defined by default? Even giving it on the command line doesn't works?
>
> What am I doing wrong? Is there a way to solve this issue?
>

What is properties? Where is it defined?
If it's undefined, then it's treated as
an empty list, so the test is, of course, false.

In Christ,
Steven Watanabe


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