Thread overview
DFLAGS ignored. How to get a dmd installation on windows that is 64 bit only
Nov 22, 2015
Carl Sturtivant
Nov 22, 2015
Rikki Cattermole
Nov 22, 2015
Carl Sturtivant
November 22, 2015
The docs for dmd for windows say that the DFLAGS environment variable's value will be appended to the dmd command line. I tried this with -m64 as the value and this is ignored.
http://dlang.org/dmd-windows.html#environment

More generally, is there a standard rearrangement of files and environment variables so that all compilation and linking is 64 bit, and 32-bit stuff is simply not there?



November 22, 2015
On 22/11/15 7:34 PM, Carl Sturtivant wrote:
> The docs for dmd for windows say that the DFLAGS environment variable's
> value will be appended to the dmd command line. I tried this with -m64
> as the value and this is ignored.
> http://dlang.org/dmd-windows.html#environment
>
> More generally, is there a standard rearrangement of files and
> environment variables so that all compilation and linking is 64 bit, and
> 32-bit stuff is simply not there?

If you must force dmd to be only 64bit, use sc.ini file to do so and not rely on your environment variables.

Also why do you not want 32-bit support?
It's not like it won't work on a 64bit computer, it will.
November 22, 2015
>
> If you must force dmd to be only 64bit, use sc.ini file to do so and not rely on your environment variables.

OK, why?
(This does work, so thank you.)

> Also why do you not want 32-bit support?
> It's not like it won't work on a 64bit computer, it will.

I've used 32-bit D and DMC a lot on real projects, so I am aware of this. I just want to tinker with the installation on a machine I use for that sort of thing, without worrying about the 32-bit configuration at all, and with no possibility of executing 32-bit tools.