Boost logo

Boost Testing :

Subject: [Boost-testing] [boost][testing] difference between using 'toolset' as an option to and bjam_options
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2015-10-29 21:29:59

While running regression tests, I see one can provide 'toolset' option
as follows:

python --toolset=sun ... "--bjam-options=-j8 toolset=sun
stdlib=gnu cxxflags=\"-std=c++11\" linkflags=\"-std=c++11\" " ...

I am assuming the first 'toolset' option is to build the testing tools,
whereas the second 'toolset' passed on to --bjam-options is for running
the regression tests themselves.

When compiling with -std=c++11,
my tools/build/src/tools/sun.jam file contains,

       42 feature.extend stdlib : gnu ;
      43 feature.compose <stdlib>gnu
      44 : <cxxflags>-std=c++03 <linkflags>-std=c++03
      45 ;

so the above 'python ...' command works well.

Now, if I add the following lines to sun.jam,

      47 feature.extend stdlib : gnu_cxx11 ;
      48 feature.compose <stdlib>gnu_cxx11
      49 : <cxxflags>-std=c++11 <linkflags>-std=c++11
      50 ;

and run the regression tests as follows:
python --toolset=sun ... "--bjam-options=-j8 toolset=sun'
stdlib=gnu_cxx11 ...

My test run fails as follows:
notice: [python-cfg] library path: "/usr/lib/python2.7/config" "/usr/lib"
/export/users/akumta/b160_dev/boost_bb/src/build/feature.jam:494: in
feature.validate-value-string from
  module feature
error: "gnu_cxx11" is not a known value of feature <stdlib>
error: legal values: "native" "sun-stlport" "apache" "gnu" "stlport"
/export/users/akumta/b160_dev/boost_bb/src/build/property.jam:276: in
validate1 from module property
/export/users/akumta/b160_dev/boost_bb/src/build/property.jam:302: in
property.validate from module property
in convert-command-line-element from module build-request
in build-request.convert-command-line-elements from module build-request
/export/users/akumta/b160_dev/boost_bb/src/build-system.jam:687: in load
from module build-system
/export/users/akumta/b160_dev/boost_bb/src/kernel/modules.jam:295: in
import from module modules
/export/users/akumta/b160_dev/boost_bb/src/kernel/bootstrap.jam:139: in
boost-build from module
/export/users/akumta/b160_dev/boost_root/boost-build.jam:17: in module
scope from module

Is there something else I need to do at my end to get this to work if I
modify sun.jam as above?



Boost-testing list run by mbergal at