Is it possible to build current Swift on Mojave? To elaborate:
I quite like the Swift language having written a fair amount of it for iOS apps in the past. Recently I've been using 5.1 on Mojave for some personal non-app tinkering. I'd like to be able to use newer toolchains to get access to 5.3 language features, SPM resource packaging, LSP support, Swift for TensorFlow, Linux ARM cross build, etc. Notably this code doesn't and won't directly use Obj-C interop or any Apple-specific APIs so it seems like this might be possible. My hope is to get a newer Swift toolchain running under Mojave and in the process document the steps.
So far I've attempted to build main and done some spelunking in the resulting errors without much success. The instructions are clear but I'm not familiar with the codebase and apparently veering off the beaten path. My fallback plan is to move work into a Linux VM but that sacrifices OpenGL acceleration.
Any better ideas? Thanks in advance.