Skip to content

Commit

Permalink
Only set one of is64 and isArm64.
Browse files Browse the repository at this point in the history
  • Loading branch information
player-03 authored Jan 28, 2024
1 parent f0bae56 commit 3d87dfe
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tools/platforms/MacPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,13 @@ class MacPlatform extends PlatformTarget
project.architectures.remove(excludeArchitecture);
}

for (architecture in project.architectures)
if (project.architectures.indexOf(X64) != -1)
{
if (architecture == Architecture.X64)
{
is64 = true;
}
if (architecture == Architecture.ARM64)
{
isArm64 = true;
}
is64 = true;
}
else if (project.architectures.indexOf(ARM64) != -1)
{
isArm64 = true;
}

if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform)
Expand Down

0 comments on commit 3d87dfe

Please sign in to comment.