Allow ignore_missing_libraries when simulating Linux on macOS

This commit is contained in:
Rylan Polster 2022-07-22 18:44:40 +02:00
parent 0e98bdde13
commit ed97281d20
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -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