formula_cellar_checks: .dylib and .framework are macOS-specific
This commit is contained in:
parent
1c7c876f3f
commit
4f166ce021
@ -94,4 +94,9 @@ module FormulaCellarChecks
|
||||
problem_if_output(check_python_framework_links(formula.lib))
|
||||
check_linkage
|
||||
end
|
||||
|
||||
def valid_library_extension?(filename)
|
||||
macos_lib_extensions = %w[.dylib .framework]
|
||||
generic_valid_library_extension?(filename) || macos_lib_extensions.include?(filename.extname)
|
||||
end
|
||||
end
|
||||
|
@ -56,7 +56,7 @@ module FormulaCellarChecks
|
||||
EOS
|
||||
end
|
||||
|
||||
VALID_LIBRARY_EXTENSIONS = %w[.a .dylib .framework .jnilib .la .o .so .jar .prl .pm .sh].freeze
|
||||
VALID_LIBRARY_EXTENSIONS = %w[.a .jnilib .la .o .so .jar .prl .pm .sh].freeze
|
||||
|
||||
def valid_library_extension?(filename)
|
||||
VALID_LIBRARY_EXTENSIONS.include? filename.extname
|
||||
|
Loading…
x
Reference in New Issue
Block a user