From ed97281d2060e2f988c3b5a397d3b8fa9d6adb6e Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Fri, 22 Jul 2022 18:44:40 +0200 Subject: [PATCH] Allow `ignore_missing_libraries` when simulating Linux on macOS --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) 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