I have a cross-platform Swift tool that I'd like to make available both on macOS and Linux through Homebrew.
I currently have a dependency on Xcode in the formula file for it:
depends_on :xcode => "11.4"
This obviously doesn't work when attempting to install this formula on Linux, as Xcode is only available on macOS.
How do I detect the platform the formula is being run on and then specify a different dependency based on that?