I've put together a pull for this, which passed the CI and produced a linux toolchain build that people can download and test out.
The advantage of this change is that packagers like @Ron_Olson, @futurejones, and me can distribute multi-arch Swift SDKs in the same Swift resource directory, rather than having to distribute separate lib/swift resource directories per architecture currently. For example, the official linux x86_64 toolchain could also contain the linux aarch64 SDK after this change, for easy cross-compilation to other architectures.
@ktoso and @0xTim, would be good to get some testing from the SSWG people. This should be a drop-in change for most everyone, as the compiler generates these paths automatically, and will only require changes from those writing toolchain-related scripts or something expecting the runtime libraries in the previous location, ie packagers like me.
@Michael_Gottesman, if you would review the pull, would like to get this in before the 5.9 branch.
1 Like