diff --git a/source/dub/compilers/dmd.d b/source/dub/compilers/dmd.d index e7d1d28..278fc75 100644 --- a/source/dub/compilers/dmd.d +++ b/source/dub/compilers/dmd.d @@ -119,7 +119,7 @@ logDebug("link.exe %s", arg); auto res = spawnProcess(["link.exe", arg]).wait(); } else { - auto res = spawnProcess(["g++", "-o", tpath.toNativeString(), objects, settings.lflags]).wait(); + auto res = spawnProcess(["g++", "-o", tpath.toNativeString()] ~ objects ~ settings.lflags).wait(); } enforce(res == 0, "Link command failed with exit code "~to!string(res)); }