hxcpp
hxcpp copied to clipboard
Do not add host architecture if an arm architecture is set
Currently if HXCPP_ARMV7 is set for example, hxcpp ignores it and adds the host architecture as if no architecture were set. This causes problems, for example, because it might result in both HXCPP_ARMV7 and HXCPP_ARM64 being set at once, which breaks some toolchains:
https://github.com/HaxeFoundation/hxcpp/blob/18f87b949464ddcf24c6a83a2f7b8f76233540bc/toolchain/iphoneos-toolchain.xml#L43-L47
(This leads to -arch armv7 arm64 being passed to the compiler, which causes Error: clang: error: no such file or directory: ‘arm64’).
This patch prevents the host architecture being added if any of the following are defined: HXCPP_ARMV6, HXCPP_ARMV7, HXCPP_ARMV7S.