[dmd-internals] Building Phobos and druntime as a dylib on Mac OS X
Jacob Carlborg
doob at me.com
Sat Dec 3 14:22:37 PST 2011
On 2 dec 2011, at 21:54, Sean Kelly wrote:
> On Dec 2, 2011, at 12:51 PM, Brad Roberts wrote:
>
>> On Fri, 2 Dec 2011, Walter Bright wrote:
>>
>>> On 12/2/2011 12:19 PM, Alex wrote:
>>>> Just FYI, LLVM 3.0 has officially deprecated llvm-gcc in favor of
>>>> Clang and DragonEgg.
>>>
>>> I expect that soon we'll switch to llvm for dmd on the Mac. Just not this
>>> upcoming release.
>>>
>>> It's good to use multiple compilers to compile dmd, such tends to flush out
>>> latent source code bugs.
>>
>> I don't remember what the problems were, but there were definitly problems
>> with using llvm on lion when Sean first upgraded the box the tester runs
>> on so we switched it back to gcc. At some point, someone will have to
>> take the plunge and figure out what the issue(s) was(were).
>
> I ram into one or two segfaults with the generated dmd built by clang. If I remember correctly, one was an alignment issue calling a struct's default actor (the one generated by the compiler, not the user). This is why I suggested moving to clang as a desired future step rather than something to be done immediately. I don't think it's worth it if we have to work around compiler bugs.
Clang is supposed to be a drop-in replacement for GCC. But of course they may not succeed in being compatible with GCC in every single way.
--
/Jacob Carlborg
More information about the dmd-internals
mailing list