Does the linked macOS Runtimes/ build do either? It may be useful to add something like that for linux too, to at least make sure nothing breaks on the daily linux CI.
I filed an issue for this when the change was made for linux. In practice, it doesn't appear to have caused a problem, though I agree that it would be better not to rely on that. ![]()
While we can get into what should be done with that build config elsewhere- both the current Android SDK builds on Windows and linux hosts use the Android NDK's clang resource directory at least partially- my point is that we need to start listing this clang resource directory as a fourth distinct requirement for cross-compilation to work, as it isn't contained in the platform sysroot nor is it mentioned anywhere in your toolchain section above. Repeatedly leaving it out or just mentioning it briefly in passing- like the single offhand mention in this doc, "Some of this content is required to process the system headers themselves (e.g. clang's builtin resource headers)"- leads to problems like us leaving configuring it for external platform C/C++ SDKs out of the SDK bundle config proposal.
I know we still have unresolved issues with how to build or match those platform clang resource directory contents properly, but that clang directory also needs to be included more prominently as a distinct requirement for cross-compilation targeting is all I'm saying here.
Realistically, almost nobody is going to read the RTFM, particularly for a tool like CMake that everyone just tolerates, so I'm suggesting that if you want to avoid the
you mentioned above from cropping up again, that you write a short primer for the Swift team, so we can just read that. ![]()
I was pointing out that once it is statically linked, there would no longer be any such requirements for separate compiler-used shared libraries, but I see on that pull that you have concerns if that static linking approach would work.
Yep, already said that I wouldn't expect it from you, just asking if the related SwiftPM requirement for Swift code in the compiler listed here four years ago will continue to be enforced and perhaps expanded, or if this CMake effort will supercede that. I figured you might have discussed that with the Swift team, so just asking what the plan is here.