Swift: Support multiple CMAKE_OSX_ARCHITECTURES values
Please support multiple architectures when building Swift code.
I received this error when CMAKE_OSX_ARCHITECTURES was set to "x86_64;arm64":
multiple values for CMAKE_OSX_ARCHITECTURES not supported with Swift
That was introduced in 2019 with this merge request, presumably because multiarch compiles wasn't supported at the time: !4283 (merged) by @compnerd
However, this post https://liamnichols.eu/2020/08/01/building-swift-packages-as-a-universal-binary.html seems to indicate that it's been supported since 2020.
I tried (with my project) to get it to work with simply passing multiple --arch flags, but ran into some problems with symbols not found in the stdlib. But that may just be my environment. I'll update this issue if I discover any more helpful information.
Is it possible that this could be re-evaluated and add support for it?
Thanks!