How to build swift-corelibs-foundation on macOS?

For Progress in particular, please be aware that we are actively in the process of improving that over here.