Compiling druntime on ldc2 - Win 8 x64

Sebastian Graf SebastianGraf at t-online.de
Tue May 14 20:30:07 PDT 2013


On Friday, 25 January 2013 at 23:19:31 UTC, kinke wrote:
> On Friday, 25 January 2013 at 13:55:59 UTC, Sebastian Graf 
> wrote:
>> Done. Yet somehow I still can't get it to link druntime. Both 
>> in release and debug mode I get 
>> http://msdn.microsoft.com/en-us/library/t0cs92zx(v=vs.110).aspx 
>> , because /O2 is combined with /RTC1, although the make file 
>> defs don't mix anything up. For the exact cl arguments see 
>> http://pastie.org/5856844.
>
> I got the same error and got rid of it by editing the VS 
> project files generated by cmake. The debug configurations of 
> druntime, druntime-debug, phobos and phobos-debug use the /RTC1 
> switch (set in XML by something like 
> <RuntimeChecks>EnableFastChecks</RuntimeChecks>). After 
> removing these lines, the build works. It's strange though, 
> because the debug configs disable any optimization (/Od), so 
> the /O2 must be set somewhere else. Plus I'd expect the release 
> configs to be built, not the debug ones...

I did exactly the same before I got the tip on where to edit the 
makefile. Kinda nasty to remember to apply all those patches 
again and again...


More information about the digitalmars-d-ldc mailing list