List Info

Thread: Darwin patch for -F option to ld




Darwin patch for -F option to ld
user name
2006-09-27 23:05:10
Rene Rivera <grafikrobotgmail.com> writes:

> David Abrahams wrote:
>> "K. Noel Belcourt" <kbelcosandia.gov> writes:
>> 
>>> Hi,
>>>
>>> Not sure when the -F framework option was
introduced into the
>>> darwin.jam, 
>> 
>> Just days ago.
>> 
>>> but I believe it is erroneous to pass -F to ld
without an
>>> argument.  
>> 
>> That shouldn't happen.  If it's happening; I think
it's a bjam bug,
>
> It's a bjam bug. I added a test in tools/jam/test that
verifies the 
> problem exists. "$(x)",
when x doesn't have a dir, is returning an 
> empty string instead of an empty list:
>
>
C:DevRootsBoostboosttoolsjamtest>..srcbin.ntx86b
jam -f test.jam
> --- Testing SHELL builtin...
> --- Testing W32_GETREGNAMES builtin...
> --- Testing var expansion...
> --- Testing var on target semantics...
> --- Testing var expansion...
> var_expand.jam:14: error: [FAILED] '' (==)
> --- Complete: PASSED(25) *FAILED(1)*

Oooooooooh.  I ran some tests, but I never considered the
possibility
that there would be no directory.  Whether or not that's a
bug is
certainly open to debate, though.  Consider:

     $(y=$(x))  #
locate y in x's directory

Unless there's a spec somewhere that details the behavior of
$(x)
when x has no "/" in it (and maybe even if there
is), I think we
should leave the jam core alone to avoid breaking code. 
I'll check in
a fix for this case in darwin.jam.

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Darwin patch for -F option to ld
user name
2006-09-27 23:21:39
David Abrahams wrote:
> Rene Rivera <grafikrobotgmail.com> writes:
> 
>> It's a bjam bug. I added a test in tools/jam/test
that verifies the 
>> problem exists. "$(x)",
when x doesn't have a dir, is returning an 
>> empty string instead of an empty list:
>>
>>
C:DevRootsBoostboosttoolsjamtest>..srcbin.ntx86b
jam -f test.jam
>> --- Testing SHELL builtin...
>> --- Testing W32_GETREGNAMES builtin...
>> --- Testing var expansion...
>> --- Testing var on target semantics...
>> --- Testing var expansion...
>> var_expand.jam:14: error: [FAILED] '' (==)
>> --- Complete: PASSED(25) *FAILED(1)*
> 
> Oooooooooh.  I ran some tests, but I never considered
the possibility
> that there would be no directory.  Whether or not
that's a bug is
> certainly open to debate, though.  Consider:
> 
>      $(y=$(x))  #
locate y in x's directory

Yeah, ouch :-(

> Unless there's a spec somewhere that details the
behavior of $(x)
> when x has no "/" in it (and maybe even if
there is),

There is no spec I know about, meaning nothing in the
original jam docs. 
But it's not just the "D" that exhibits the
behavior. This applies to 
any of the value selection keys, they return an empty string
instead of 
an empty list.

> I think we
> should leave the jam core alone to avoid breaking code.

I tend to agree. And that we should document the current
behavior in 
this case. Makes some things less than convenient/intuitive,
oh well :-


-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software
.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )