Only "static" Boost tests

"Kuhl, Brian via Boost-build" <[email protected]>
Newsgroups gmane.comp.lib.boost.build
Message-ID <6C486AB80682E24095E3E77A408D68F20142822233@ALA-MBD.corp.ad.wrs.com>
Hi
This is the answer to my earlier post, where I asked if there was any additional  feature that would skip tests specifically designated as <link>shared.  I was a little annoyed that

cd status
../b2 link=static

did not do this.

In my case I have some processor configurations where VxWorks does not support shared libraries, and every test with a shared link will fail. So I'd like to skip those tests.

My solution was to add a feature to my
project-config.jam

feature.feature static-only
    : on
    : optional composite propagated
    ;

feature.compose <static-only>on
    :  <link>static
    ;

project : requirements  <static-only>on,<link>shared:<build>no ;


Then

./b2  static-only=on

Does what I need.

Brian Kuhl
Wind River

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.