Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rdmd.d
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private int rebuild(string root, string fullExe,
string objDir, in string[string] myModules,
string[] compilerFlags, bool addStubMain)
{
auto todo = compiler~" "~std.string.join(compilerFlags, " ")
auto todo = std.string.join(compilerFlags, " ")
~" -of"~shellQuote(fullExe)
~" -od"~shellQuote(objDir)
~" -I"~shellQuote(dirname(root))
Expand Down Expand Up @@ -335,7 +335,7 @@ private int rebuild(string root, string fullExe,
// On Posix, DMD can't handle shell quotes in its response files.
version(Posix)
{
todo = compiler~" "~std.string.join(compilerFlags.dup, " ")
todo = std.string.join(compilerFlags.dup, " ")
~" -of"~fullExe
~" -od"~objDir
~" -I"~dirname(root)
Expand All @@ -346,10 +346,10 @@ private int rebuild(string root, string fullExe,
}

std.file.write(rspName, todo);
todo = compiler ~ " " ~ shellQuote("@"~rspName);
todo = shellQuote("@"~rspName);
}

immutable result = run(todo);
immutable result = run(compiler ~ " " ~ todo);
if (result)
{
// build failed
Expand Down