Skip to content

Commit 0ab4cf0

Browse files
authored
Do not add host architecture if arm architecture is set (HaxeFoundation#1079)
1 parent 73243b3 commit 0ab4cf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/hxcpp/BuildTool.hx

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ class BuildTool
134134
m64 = mDefines.exists("HXCPP_M64");
135135
m32 = mDefines.exists("HXCPP_M32");
136136
arm64 = mDefines.exists("HXCPP_ARM64");
137-
if (m64==m32 && !arm64)
137+
var otherArmArchitecture = mDefines.exists("HXCPP_ARMV6") || mDefines.exists("HXCPP_ARMV7") || mDefines.exists("HXCPP_ARMV7S");
138+
if (m64==m32 && !arm64 && !otherArmArchitecture)
138139
{
139140
var arch = getArch();
140141

0 commit comments

Comments
 (0)