Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Jun 26, 2024
1 parent 0cffc44 commit fc935bb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tools/hxcpp/BuildTool.hx
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,20 @@ class BuildTool
if (m64==m32 && !arm64 && !otherArmArchitecture)
{
var arch = mDefines.get("HXCPP_ARCH");
if (arch != null) {
m64 = arch == "x86_64";
m32 = arch == "x86";
arm64 = arch == "arm64";
} else {
if (arch!=null)
{
m64 = arch=="x86_64";
m32 = arch=="x86";
arm64 = arch=="arm64";
}
else
{
var hostArch = getArch();

// Default to the current OS version. windowsArm runs m32 code too
m64 = hostArch == "m64";
m32 = hostArch == "m32";
arm64 = hostArch == "arm64";
m64 = hostArch=="m64";
m32 = hostArch=="m32";
arm64 = hostArch=="arm64";
}

mDefines.remove(m32 ? "HXCPP_M64" : "HXCPP_M32");
Expand Down

0 comments on commit fc935bb

Please sign in to comment.