From discussion in Homebrew/homebrew#11727.
Closes Homebrew/homebrew#11727. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>