-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix arch handling in chip_xcode_build_connector #23272
Fix arch handling in chip_xcode_build_connector #23272
Conversation
There's also |
PR #23272: Size comparison from e62498b to eb47e13 Increases (2 builds for cc13x2_26x2, esp32)
Decreases (13 builds for bl602, bl702, cc13x2_26x2, esp32, k32w, psoc6, telink)
Full report (38 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
As a followup, the PLATFORM_DEFAULT_ARCH bit in |
Head branch was pushed to by a user without write access
This makes Xcode builds for "My Mac" work on M1 Macs. Also set is_debug correctly and tweak some project / scheme settings.
9a0a05d
to
050d4ab
Compare
PR #23272: Size comparison from 66c0270 to 050d4ab Increases (9 builds for cc13x2_26x2, k32w, psoc6, qpg, telink)
Decreases (6 builds for bl602, bl702, cc13x2_26x2, cyw30739, esp32)
Full report (38 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #23272: Size comparison from 0854eb3 to d4e8786 Increases (3 builds for bl702, k32w, telink)
Decreases (1 build for telink)
Full report (10 builds for bl702, k32w, qpg, telink)
|
Head branch was pushed to by a user without write access
PR #23272: Size comparison from 0d6c60f to e11dae6 Increases (5 builds for cc13x2_26x2, esp32, nrfconnect, psoc6)
Decreases (11 builds for bl602, bl702, cc13x2_26x2, k32w, psoc6, telink)
Full report (38 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
* Set target_cpu and mac_target_arch based on first arch in ARCHS. This makes Xcode builds for "My Mac" work on M1 Macs. Also set is_debug correctly and tweak some project / scheme settings. * restyle Co-authored-by: Andrei Litvin <[email protected]>
* Set target_cpu and mac_target_arch based on first arch in ARCHS. This makes Xcode builds for "My Mac" work on M1 Macs. Also set is_debug correctly and tweak some project / scheme settings. * restyle Co-authored-by: Andrei Litvin <[email protected]>
Set target_cpu based on first arch in ARCHS so Xcode builds for Mac work on M1 Macs.
PLATFORM_PREFERRED_ARCH
seems to be independent of the host architecture, so we end up with the wrongtarget_cpu
andBUILDCONFIG.gn
doesn't find the tool chain.An alternative fix might be to tweak the check in
BUILDCONFIG.gn
that selects the host tool chain (target_os == host_os && target_cpu == host_cpu
) to ignore the CPU type when building on Mac for Mac. (It's not entirely clear to me whattarget_cpu
is meant to be when building for botharm64
andx86_64
at the same time.)Also tweak project / scheme settings.