On 18.03.2015 01:46, Martin Nowak wrote:
On 03/18/2015 01:13 AM, Manu via Digitalmars-d-announce wrote:
Yes. Has for a while.
We're really hanging out for the 32bit COFF libs to ship with DMD.

Well, someone should add a build target to
https://github.com/D-Programming-Language/phobos/blob/master/win32.mak.
How is the phobos.lib called to avoid conflicts?

It's a bit late to come up with this, will see if I can find enough time
for this.


The COFF32 lib is built through win64.mak. This is an excerpt from my build script to create lib32\phobos32mscoff.lib:

set dm_make=c:\l\dmc\bin\make
set vs=vs12
set vcdir=c:\l\%vs%\vc
set cl32=%vcdir%/bin/cl.exe
set ar32=%vcdir%/bin/lib.exe
set MSLINK=%vcdir%\bin\link.exe
set lib32coff=m:\s\d\rainers\lib32;%vcdir%\vc\lib;%sdkdir%\lib
set sdkdir=c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A

set LINKCMD=%MSLINK%
set LIB=%LIB32COFF%
set ARGS=DMD=%DMD% MAKE=%dm_make% "CC=\"%cl32%\"" "AR=\"%ar32%\"" VCDIR=%vcdir% "SDKDIR=%sdkdir%"

cd druntime
%dm_make% -f win64.mak MODEL=32mscoff %ARGS% target
if errorlevel 1 goto xit
cd ..

cd phobos
%dm_make% -f win64.mak MODEL=32mscoff %ARGS% LIB=..\lib32\phobos32mscoff.lib
if errorlevel 1 goto xit
cd ..

Reply via email to