From 2a27770ebb5085fb2e586a72fbebdf0577579887 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Tue, 25 Jun 2024 09:54:01 +0100 Subject: [PATCH] [tools] Cross compile to x86 from arm64 on mac --- tools/platforms/MacPlatform.hx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/platforms/MacPlatform.hx b/tools/platforms/MacPlatform.hx index 09322efcb..c0f901613 100644 --- a/tools/platforms/MacPlatform.hx +++ b/tools/platforms/MacPlatform.hx @@ -450,7 +450,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: }