Skip to content

Commit 6f25adc

Browse files
committed
preserve file order
1 parent 3a40edf commit 6f25adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/dpp/runtime/options.d

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ struct Options {
5353

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

6060
includePaths = systemPaths ~ includePaths;
6161
}

0 commit comments

Comments
 (0)