-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lime rebuild ios
fails on M1 due to multiple architecture flags
#1733
Comments
In |
Ah you're right... So the |
lime rebuild ios
fails due to multiple architecture flagslime rebuild ios
fails on M1 due to multiple architecture flags
Maybe the problem is just that the host architecture results in a flag being added, when that should not be happening. This would go unnoticed on intel mac is because the x86_64 architecture does not result in a -arch flag being set, so even if the host architecture bled through into the compiler flags it wouldn't cause any issues: |
After further debugging, it looks like the problem lies with hxcpp, not lime: HaxeFoundation/hxcpp#1079 |
By default, when running
lime rebuild ios
, both armv7 and arm64 architecture flags are active. See:lime/tools/platforms/IOSPlatform.hx
Lines 478 to 482 in e6205bf
This means that
HXCPP_ARMV7
andHXCPP_ARM64
are set at once:lime/tools/platforms/IOSPlatform.hx
Lines 491 to 493 in e6205bf
The hxcpp code does not allow for these flags to be set at once (see https://github.com/HaxeFoundation/hxcpp/blob/18f87b949464ddcf24c6a83a2f7b8f76233540bc/toolchain/iphoneos-toolchain.xml#L43-L47).
The compiler receives
-arch armv7 arm64
, so only armv7 is treated as an architecture flag, and thearm64
is treated as a file to be compiled, resulting in the error:Perhaps it's fine to just no longer set
HXCPP_ARMV7
by default? Considering the commit message here: f34b595.The text was updated successfully, but these errors were encountered: