Merge pull request #13598 from Rylan12/ignore-missing-libraries-simulate-linux

Allow `ignore_missing_libraries` when simulating Linux on macOS
This commit is contained in:
Rylan Polster 2022-07-23 02:25:37 +02:00 committed by GitHub
commit 5080312bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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