Skip to content

Commit

Permalink
fixup! Add GitHub Action CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Jul 2, 2023
1 parent b6e3323 commit b6d5ea7
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions test.d
Original file line number Diff line number Diff line change
Expand Up @@ -104,33 +104,11 @@ string[] dubShellCommand(string[] subCommands ...)
.array;
}

string defaultArchitecture()
{
version (X86_64)
return "x86_64";
else
{
version (DigitalMars)
return "x86_mscoff";
else
return "x86";
}
}

string dubArch()
{
version (Windows)
{
import std.process : environment;
import std.string : split;
import std.process : environment;

const architecture = environment
.get("DUB_ARCH", defaultArchitecture)
.split(" ")[$ - 1];
const arch = environment.get("DSTEP_TARGET_TRIPLE", "");

return "--arch=" ~ architecture;

}
else
return "";
return arch.length > 0 ? "--arch=" ~ arch : "";
}

0 comments on commit b6d5ea7

Please sign in to comment.