[dmd-internals] Building Phobos and druntime as a dylib on Mac OS X

Sean Kelly sean at invisibleduck.org
Wed Dec 7 14:51:31 PST 2011


On Dec 4, 2011, at 3:09 AM, Jacob Carlborg wrote:
> 
> On 4 dec 2011, at 01:24, Walter Bright wrote:
>> 
>> 
>> It either has to have a runtime switch if the 10.7 scheme is not backwards compatible, or we have to stick with the old scheme until the older OSX's disappear.
> 
> 
> I'm pretty sure it's not backwards compatible. The tlv_get_addr exists in dyld for Lion but not for Snow Leopard. I would hate to see that we need to wait with this until Snow Leopard disappears. I see three different alternatives:
> 
> 1. Runtime switch (as you suggests above)
> 
> 2. The user need to replace dyld with the version from Lion, I have no idea if that will work. That's probably not a good idea to do anyway

I don't think it will.  The object file format changed to support this as well.


> 3. We implement the runtime part ourself. Now that it is implemented in Lion we can make it forwards compatible (as long as Apple doesn't change the implementation in later versions of OSX)

Sure, but this still won't work in 10.6 because of the object file and dyld issue.  Or am I misunderstanding?


More information about the dmd-internals mailing list