RejectedSoftware Forums

Sign up

Is it possible to specify compiler search path for compilers not in PATH?

Is it possible to specify compiler search path for compilers not in
PATH? Preferably in an environment variable, or a config file?

I think this would be useful in a variety of scenarios. For example, I
have LDC and GDC installed in windows. I would not mind having ldc2.exe
and gdc.exe on the path, but each of them require their own special
distribution of mingw (which has lots of other tools: gcc, gdb, ld,
etc.). For LDC/GDC to find the correct GCC compiler suite, it's best to
have each mingw distribution placed in the same base dir as LDC/GDC.
This means that if ldc or gdc is on the PATH, then each gcc/gdc/ld/etc.
is on the PATH as well. I don't want that to avoid any confusion (on top
of that I also have the Cygwin GCC compiler on the PATH, which is the
only one I would like to be there)

Bruno Medeiros
https://twitter.com/brunodomedeiros

Re: Is it possible to specify compiler search path for compilers not in PATH?

On 05/03/2014 16:07, Bruno Medeiros wrote:

Is it possible to specify compiler search path for compilers not in
PATH? Preferably in an environment variable, or a config file?

I think this would be useful in a variety of scenarios. For example, I
have LDC and GDC installed in windows. I would not mind having ldc2.exe
and gdc.exe on the path, but each of them require their own special
distribution of mingw (which has lots of other tools: gcc, gdb, ld,
etc.). For LDC/GDC to find the correct GCC compiler suite, it's best to
have each mingw distribution placed in the same base dir as LDC/GDC.
This means that if ldc or gdc is on the PATH, then each gcc/gdc/ld/etc.
is on the PATH as well. I don't want that to avoid any confusion (on top
of that I also have the Cygwin GCC compiler on the PATH, which is the
only one I would like to be there)

Opened issue:
https://github.com/rejectedsoftware/dub/issues/269

Bruno Medeiros
https://twitter.com/brunodomedeiros