Error compiling swift with ninja

Supposedly adding --xcode parameter should fix it for the build-script: Swift compilation failed - #14 by yasserdeceukelier

I'm also facing it, but I'm facing it when building toolchains: ./swift/utils/build-toolchain

I'm not sure how to add this parameter to that. Any suggestions?