Compiling Swift 5.2.4 release version from source failed

Looks like another person had a similar issue here: Error building toolchain (unknown option --color-diagnostics). Did you run utils/update-checkout --tag? Otherwise, the other project repositories (llvm-project etc.) will not be at the correct tags.