[Issue 16677] -L flag ignores quotes in the arguments passed to the linker

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 2 19:21:26 PST 2017


https://issues.dlang.org/show_bug.cgi?id=16677

--- Comment #3 from Sprink <sprink.noreply at gmail.com> ---
(In reply to Atila Neves from comment #2)
> If the problem was cmd.exe then cl.exe would also suffer from this, which
> doesn't happen.

No it wouldn't, cl.exe doesn't get the quotes either. So there no quotes to
ignore or to process. It's a matter of how DMD sends arguments to the process,
it does so by building an entire string. So it just concatenates the passed
argument into the list, but it's devoid of it's quotes because of cmd.exe.
Escaping the quotes so cmd.exe includes the quotes solves the problem.

--


More information about the Digitalmars-d-bugs mailing list