Nighly builds of GDC

David Friedman dvdfrdmn at users.ess-eff.net
Tue Oct 31 03:40:59 PST 2006


David Friedman wrote:
> Gregor Richards wrote:
> 
>> %u wrote:
>>
>>> Is it possible to build the native MingW32 Windows exe?
>>>
>>
>> Not from anything but a Windows system.  The included phobos has the 
>> fairly lame habit of running some of its generated code to generate 
>> more code, and doesn't understand the concept of cross-compilation.
>>
>>  - Gregor Richards
> 
> 
> There is support for building cross-compilers that target Win32 and 
> SkyOS.  The files that would normally need to be generated are included 
> in the distrubtion and should be picked up the the configuration script.
> 
> David

The question was actually about cross-built native compilers...  This 
almost works out of the box, but require one extra step.  After running 
the configure script, in the top level Makefile, replace

   CXX_FOR_BUILD = $(CXX)

with

   CXX_FOR_BUILD = g++

The problem in this case is code generation for the compiler itself, not 
Phobos.

David



More information about the D.gnu mailing list