COFF support for Win32 merged

ketmar via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Aug 17 05:53:52 PDT 2014


On Sun, 17 Aug 2014 11:34:59 +0000
bearophile via Digitalmars-d-announce
<digitalmars-d-announce at puremagic.com> wrote:

> Yes, I am using a 32 bit Windows.
are you sure that you have latest git then? yes, i know that this is
very silly question, but sometimes... ;-)

unfortunately, i have no windows boxes (neither cross-compilers), so
can't check it myself. but i see this in mars.c:

#if TARGET_WINDOS
            else if (strcmp(p + 1, "m32mscoff") == 0)
            {
                global.params.is64bit = 0;
                global.params.mscoff = true;
            }
#endif

...

static const char* parse_arch(size_t argc, const char** argv, const
char* arch) {
    for (size_t i = 0; i < argc; ++i)
    {   const char* p = argv[i];
        if (p[0] == '-')
        {
            if (strcmp(p + 1, "m32") == 0 || strcmp(p + 1, "m32mscoff")
== 0 || strcmp(p + 1, "m64") == 0) arch = p + 2;
            else if (strcmp(p + 1, "run") == 0)
                break;
        }
    }
    return arch;
}

so i believe that it should work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20140817/4194c850/attachment.sig>


More information about the Digitalmars-d-announce mailing list