Skip to content

Commit

Permalink
[tools] Cross compile to x86 from arm64 on mac (#1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk authored Jul 14, 2024
1 parent 656c761 commit 4fa31a0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/platforms/MacPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,14 @@ class MacPlatform extends PlatformTarget
case X86:
commands.push(["-Dmac", "-DHXCPP_CLANG", "-DHXCPP_M32"]);
case ARM64:
commands.push(["-Dmac", "-DHXCPP_CLANG", "-DHXCPP_ARM64"]);
if (targetFlags.exists("64"))
{
commands.push(["-Dmac", "-DHXCPP_CLANG", "-DHXCPP_ARCH=x86_64"]);
}
else
{
commands.push(["-Dmac", "-DHXCPP_CLANG", "-DHXCPP_ARM64"]);
}
default:
}

Expand Down

0 comments on commit 4fa31a0

Please sign in to comment.