Skip to content

Commit

Permalink
preserve file order
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Colvin committed May 3, 2018
1 parent 37d699a commit 4ed81dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/dpp/runtime/options.d
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ struct Options {

// Remove the name of this binary and the name of the .dpp input file from args
// so that a D compiler can use the remaining entries.
dlangCompilerArgs =
args[1..$].filter!(a => a.extension != ".dpp").array ~
dFileNames;
dlangCompilerArgs = args[1..$]
.map!(a => a.extension == ".dpp" ? toDFileName(a) : a)
.array;

includePaths = systemPaths ~ includePaths;
}
Expand Down

0 comments on commit 4ed81dd

Please sign in to comment.