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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 10 18:41:35 PST 2016


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

Sprink <sprink.noreply at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sprink.noreply at gmail.com

--- Comment #1 from Sprink <sprink.noreply at gmail.com> ---
The problem might be Window's shell consuming the quotes, not that DMD ignores
them. A potential workaround would be to escape the quotes you want passed to
the linker. You'd have to look it up, I think it is different for cmd and
powershell.

https://github.com/dlang/dmd/blob/v2.072.0/src/link.d#L267

Adding quotes around passed in linker flags would make it simpler, not having
to deal with escaping the quotes in the command.

--


More information about the Digitalmars-d-bugs mailing list