diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 1e8086d8e0..f52caa3650 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -3215,6 +3215,8 @@ class Formula # Permit links to certain libraries that don't exist. Available on Linux only. def ignore_missing_libraries(*) + return if Homebrew::SimulateSystem.linux? + raise FormulaSpecificationError, "#{__method__} is available on Linux only" end