Re: [Boost-bugs] [Boost C++ Libraries] #9704: b2: Compiler flavour has no flexibility for cross-compiling projects.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9704: b2: Compiler flavour has no flexibility for cross-compiling projects.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-04 21:09:39


#9704: b2: Compiler flavour has no flexibility for cross-compiling projects.
--------------------------------+--------------------------------
  Reporter: lukasz.forynski@… | Owner: steven_watanabe
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: build
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords: boost build system
--------------------------------+--------------------------------

Comment (by steven_watanabe):

 Replying to [ticket:9704 lukasz.forynski@…]:
>
> {{{
> import toolset ;
>
> if [ toolset.name ] == gcc
> {
> if [ toolset.flavor ] == flav_1
> {
> }
> }
> <snip>
> }}}
>

 This is fundamentally impossible in Boost.Build. The main reason being
 that there is no such thing as the value of a feature in a Jamfile. See
 http://www.boost.org/boost-
 build2/doc/html/bbv2/faq.html#bbv2.faq.featurevalue

 You would need to write this using a conditional

 {{{
 import feature ;
 rule calculate-install-dir ( properties * )
 {
     local gcc-version = [ feature.get-values <toolset-gcc:version> :
 $(properties) ] ;
     return <location>../../release_$(gcc-version) ;
 }

 install copy_binaries_to_release
   : # target names
   :
     <conditional>@calculate-install-dir
   ;
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9704#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC