Can you install a homebrew forumula without updating Xcode?
I found the file which prevents me from installing anything. It is /usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb

What I did to solve this was commenting out lines 65-82 and then locking the file so it doesn't get overwritten.