|
Boost-Build : |
From: Jurko GospodnetiÄ (jurko.gospodnetic_at_[hidden])
Date: 2008-07-30 09:46:51
Hi Markus.
>> As far as I gathered so far, you want '-pending_instantiations #' to
>> be added to the compiler command line when using the hp_cxx compiler
>> toolset with the <c++-template-depth># property set.
OK, as I mentioned in another post in this thread I am still
searching for a way to clean this up without changing command line
parameters generated in the default case (I have an idea that might do
it now but... off for a swim in the sea first :-)).
Until then, here is how I got your hp_cxx toolset problem solved:
> rule compile.c++
> {
> # We preprocess the TEMPLATE_DEPTH command line option here because we found
> # no way to do it correctly in the actual action code. There we either get
> # the -pending_instantiations parameter when no c++-template-depth property
> # has been specified or we get additional quotes around
> # "-pending_instantiations ".
> local template-depth = [ on $(1) return $(TEMPLATE_DEPTH) ] ;
> TEMPLATE_DEPTH on $(1) = "-pending_instantiations "$(template-depth) ;
> }
>
> actions compile.c++
> {
> $(CONFIG_COMMAND) -x cxx -c -std strict_ansi -nopure_cname -noimplicit_include -timplicit_local -ptr "$(<[1]:D)/cxx_repository" $(OPTIONS) $(TEMPLATE_DEPTH) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)"
> }
I also found no way to lose the quotes directly in the action code so
I transformed the TEMPLATE_DEPTH variable in the corresponding rule
where quotes are handled as I expected them to be handled in the first
place. Then I just used the modified TEMPLATE_DEPTH parameter directly
in the action to add the corresponding command-line option.
I'll commit something like this once I get the gcc command line
options problem sorted out, but this should help you achieve what you
need locally on your end.
Btw, you mentioned needing this support for the acc toolset as well.
What is the correct command-line parameter there?
Best regards,
Jurko GospodnetiÄ
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk