<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">is there a way to achieve this:</span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>dmd -L-lfoo -L-lbar main.d </div>
<div>with a single call to -L to pass several linker options; something like:</div><div>dmd -L'-lfoo -lbar' main.d </div><div>except that won't work due to '' being treated as one argument.</div></div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Maybe something like:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">dmd --L=' flag1 flag2' main.d </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
which would treat the argument to --L= as string[] instead of string (alternative name: linkopts=)</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
This example is simple on purpose, but in more complex case all I can do is write a script to avoid that; and it makes it simpler to interface with C based applications.</div></div>