On Wed, Mar 9, 2011 at 12:55 AM, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com">newshound2@digitalmars.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On 3/8/2011 1:23 PM, Trass3r wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Yes, but you can compile an x64 dmd yourself on Linux.<br>
</blockquote>
<br>
Is there any "how to"?<br>
</blockquote>
<br>
IIRC you have to edit linux.mak to use -m64 instead of -m32.<br>
</blockquote>
<br></div></div>
It has worked in the past, but the 64 bit build is not regularly tested.<br>
</blockquote></div><br>When I tried this last week, changing -m32 to -m64 got me a clean 64-bit build of dmd2, with no build errors.  Very easy.<br><br>A caveat-- I tried the same search and replace s/32/64/ in places on the druntime and phobos makefiles, but there was something more subtle going on--the generated libraries built fine but were still 32-bit objects inside the .a archives.  Somehow I wasn't passing the right flags to generate 64-bit libraries.<br>
<br>Is there a flag to tell dmd to compile to 64-bit objects?<br><br>Thanks,<br>Jason<br>