Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
add .exe extension on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Dec 29, 2014
1 parent 99c2e57 commit 62d3248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/runbench.d
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ void runTest(string pattern, string dmd, string dflags, string runArgs, uint rep
foreach(ref src; sources)
{
writeln("COMPILING ", src);
auto bin = buildPath(bindir, src.chompPrefix("./").chomp(".d"));
version (Windows) enum exe = "exe"; else enum exe = "";
auto bin = buildPath(bindir, src.chompPrefix("./").setExtension(exe));
auto cmd = std.string.format("%s %s -op -odobj -of%s %s", dmd, dflags, bin, src);
runCmd(cmd);
src = bin;
Expand Down

0 comments on commit 62d3248

Please sign in to comment.