« Return to Thread: [Boost][build] Bjam ordering source $(>) list

Re: [Boost][build] Bjam ordering source $(>) list

by K. Noel Belcourt :: Rate this Message:

Reply to Author | View in Thread


On Jun 26, 2009, at 2:08 PM, Steven Watanabe wrote:

> K. Noel Belcourt wrote:
>> Thanks for the push, I dug in a bit more to see how sources $(>) are
>> populated for the link action.
>>
>> In builtin.jam, linking-generator.generated-targets() is the place to
>> alter what ends up in $(>), and in what order.  For my problem, I
>> separated the OBJ sources from all other sources so I could place the
>> OBJ before STATIC_LIB, etc...  The fix turned out to work beautifully
>> as you can see here.
>> <snip>
>>
>> This patch moves all objects before non-objects and retains their
>> respective relative ordering, so as not to break the dependency  
>> ordering.
>>
>> Anyone think this is this worth committing to Boost.Build?
>
> Maybe you can use unix-linking-generator which also
> makes sure that dependent libraries are placed in the correct order?


That would mean that generators that don't inherit from unix-linking-
generator wouldn't benefit from this change (e.g. msvc-linking-
generator), but I guess that doesn't really matter.

Sure, I can move it into unix.jam.

-- Noel


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

 « Return to Thread: [Boost][build] Bjam ordering source $(>) list