On Friday, 30 December 2016 at 21:51:32 UTC, Rainer Schuetze wrote:

On 30.12.2016 19:24, Jeremy DeHaan wrote:
On Friday, 30 December 2016 at 04:56:59 UTC, Jerry wrote:
On Friday, 30 December 2016 at 03:51:13 UTC, Jeremy DeHaan wrote:
How does one correctly add a linker path that has spaces?

The quotes get consumed by the command line. The way DMD spawns the
linker by creating a new string with all the flags.


Does this happen on other platforms too? There has to be a GOOD way to pass a linker path that has spaces. Should this be considered as a bug?



Not sure if it qualifies as "GOOD", but this works:

dmd -m64 "-L/LIBPATH:\"path with spaces\"" main.d

Well, it's probably as good as it's going to get without dmd looking for this specifically or having something added. Thanks.

Reply via email to