Is anyone else getting this error when building the compiler from `master` on macOS?

Unbelievable, but deleting /Library/Developer/CommandLineTools and running sudo xcode-select -s /Applications/Xcode.app for me did solve building error.

Is such surgery with deleting /Library/Developer/CommandLineTools safe for my local install?

Will this problem be somehow addressed in changing build-script?