SwiftSyntax Builds for x86 on ARM

I have an iOS project that uses Swift macros. On my new MacBook Pro (ARM), I notice that it builds for both x86 and ARM. There is no need for x86 in this process.

You can reproduce this issue with a new simple project that includes macros or by using one of the projects I found here.

Is this a known issue?

2 Likes

I have filed some issues found when cross-compiling Swift packages that use macros. My impression is that not enough work has been put into making it work well with SwiftPM.

2 Likes