views:

44

answers:

1

I would like to compile a file with a specific compiler not supported on boost. I made a rule:

rule my_rule ( source : target )
{
    compile_specially source target ;
}

actions compile_specially
{
    my_compile_command $(my_parameters) $(1) -o $(2)
}

now this code builds the file into the Jamroot directory (obviously). I, however want it to be build in the regular target path (bin/gcc-4.4/release/threading-multi/...). So how do I get/generate the standard path in my_rule?

Thank You in advance.

A: 

Use the "make" target (see BBv2 Custom Commands). Of course this doesn't really get you what I think you are after. What you want is to create a new toolset which is considerably more complicated. You'll want to read through the extender chapter of the documentation. In particular the tools and generators section. And join us in the Boost Build mail list for detailed questions and debugging.

GrafikRobot