<div dir="ltr">I've said it before, but this man is a genius! :)<br><div class="gmail_extra"><br><div class="gmail_quote">On 23 June 2013 23:33, Rainer Schuetze <span dir="ltr"><<a href="mailto:r.sagitario@gmx.de" target="_blank">r.sagitario@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 22.06.2013 02:07, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It would certainly be nice in Win32, but I tend to think Win32 COFF<br>
should be much higher priority.<br>
</blockquote>
<br></div>
I have removed the dust from these patches and pushed them successfully through the test suite and unittests:<br>
<br>
<a href="https://github.com/rainers/dmd/tree/coff32" target="_blank">https://github.com/rainers/<u></u>dmd/tree/coff32</a><br>
<a href="https://github.com/rainers/druntime/tree/coff32" target="_blank">https://github.com/rainers/<u></u>druntime/tree/coff32</a><br>
<a href="https://github.com/rainers/phobos/tree/coff32" target="_blank">https://github.com/rainers/<u></u>phobos/tree/coff32</a><br>
<br>
Compile dmd as usual, but druntime and phobos with something like<br>
<br>
druntime:<br>
 make -f win64.mak MODEL=32ms "CC=<path-to-32bit-cl>"<br>
phobos:<br>
 make -f win64.mak MODEL=32ms "CC=<path-to-32bit-cl>" "AR=<path-to-32bit-lib>"<br>
<br>
COFF32 files are generated when -m32ms is used on the command line.<br>
<br>
If you put the resulting libraries into the lib folder, using a standard installation of VS2010 might work, but I recommend adding a new section to sc.ini and adjust paths there. Mine looks like this:<br>
<br>
[Environment32ms]<br>
PATH=c:\l\vs9\Common7\IDE;%<u></u>PATH%<br>
LIB="%@P%\..\..\lib32";c:\l\<u></u>vs9\vc\lib;c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib"<br>
DFLAGS=%DFLAGS% -L/nologo -L/INCREMENTAL:NO<br>
LINKCMD=c:\l\vs9\vc\bin\link.<u></u>exe<br>
<br>
BTW: I also found some bugs in the Win64 along the way, I'll create pull requests for these.<br>
</blockquote></div><br></div></div>