Building D compiler in MSVC IDE

Robert Fraser fraserofthenight at gmail.com
Sun Apr 5 06:45:17 PDT 2009


Tomas Lindquist Olsen wrote:
> On Sat, Mar 28, 2009 at 11:49 PM, Robert Fraser
> <fraserofthenight at gmail.com> wrote:
>> x-code wrote:
>>> I want to build last D 2.0 compiler in Microsoft Visual Studio IDE.
>>> Prompt me please, what create and adjust *.vcproj project in MSVC
>>> 2003/2005/2008 (or *.dsp for VC6) for assembly of the D compiler in
>>> Visual Studio?
>>> I tried this do, but faced that that some files
>>> &#1085;&#1077;&#1093;&#1074;&#1072;&#1090;&#1072;&#1077;&#1090; (even after
>>> I have found in sources subprojects which generate the part lacking
>>> sources).
>>> Anyone created the similar projects? If yes, that where possible
>>> download working project?
>> I spent ~15 hours trying to get LDC to build with it, and eventually
>> basically gave up. It'll build (with some modifications), but there are
>> quite a few issues that prevent it from working right in many cases.
>>
> 
> At the moment, LDC on Windows is pretty much a waste of time, since
> LLVM only supports Dwarf debug information and exception handling in
> the backends. This *will* change eventually, but none the less, this
> has been the situation for more than two years. There seems to be some
> GSOC proposals that will help if accepted, but anyway ...
> 
> Btw.., you spent ~15hrs getting LDC to compile with MSVC? O.o
> What changes did you have to make? Where?
> 
> Please send us your patches :)

I submitted it a long time ago here: 
http://www.dsource.org/projects/ldc/ticket/98 ... However I gave up 
after realizing just how far LLVM has to come on Windows. It doesn't 
look like 15 hours of work, but I haven't used VS much at all, and just 
getting LLVM to build in it is enough of a chore.



More information about the Digitalmars-d mailing list