Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-24 12:25:22


Christopher Currie <Christopher_at_[hidden]> writes:

>> However, I think it's acceptable to ask the user for help in this case. V2
>> already has a code to detect situation when two different targets are
>> assigned the same filename. We can decide that main target name is not
>> encoded in path. In the case above, user will get an error telling that two
>> target conflict. The user then can manually resolve conflict by writing
>>
>> exe a : a.cpp : <define>A <location-prefix>a ;
>> exe b : a.cpp : <define>B ;
>>
>> And targets will be generated to "bin/a/gcc/debug/a.o" and "bin/gcc/debug/
>> a.o".
>
> I'm not sure that I like this proposal, if possibly for no better reason
> than programmer laziness. IMO, if the build system is intelligent enough
> to detect that there is potential conflict, then it ought to "do the
> right" thing, with out any prompting from the user.

I have the same feelings about it, but have no time right now to
delve into the logical arguments to find out if my feelings are
justified.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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