Commit 924bbf8
Make ExecuTorch build with Xcode 26 beta toolchain and InferSendableFromCaptures enabled (#12539)
Summary:
Fix a bunch of staging builds that stopped working after enabling
`InferSendableFromCaptures` globally. This is likely caused by a bug in
Xcode's 26 toolchain, although I've not been able to reproduce it in an
isolated sample.
Switching from `Array.init` to `{ Array($0) }` solves the issue and
keeps the code building without warnings in all toolchain versions.
Differential Revision: D78406265
Co-authored-by: Xavier Jurado Cristobal <[email protected]>
Co-authored-by: Anthony Shoumikhin <[email protected]>1 parent f49c3e4 commit 924bbf8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | | - | |
| 835 | + | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| |||
0 commit comments