Skip to content

User-defined features vs. builtin features. #149

Answered by grafikrobot
tee3 asked this question in Q&A
Discussion options

You must be logged in to vote

Using toolset.add-requirements is certainly one way to do it. Using it would look like:

toolset.add-requirements <instruction-set>xyz,<toolset>gcc:<cflags>-march=xyz ;
toolset.add-requirements <instruction-set>xyz,<toolset>gcc:<linkflags>-march=xyz ;

You would have to repeat that for all the toolsets and features you support. Another, way more hackish way is possibly to add to the toolset module definitions. For example:

using gcc ;
module gcc
{
  cpu-flags OPTIONS : x86 : xyz : -march=xyz ;
}

WARNING: That is totally off the cuff and untested code.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tee3
Comment options

@tee3
Comment options

@tee3
Comment options

Answer selected by tee3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants