www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DFLAGS ignored. How to get a dmd installation on windows that is 64

reply Carl Sturtivant <sturtivant gmail.com> writes:
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?
Nov 21 2015
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
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.
Nov 21 2015
parent Carl Sturtivant <sturtivant gmail.com> writes:
 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.
Nov 22 2015