Skip to content

Commit

Permalink
fix: ensure_func fails properly if it fails during build
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Mar 7, 2021
1 parent f1aeb9e commit b99ecb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nokogiri/extconf.rb
Expand Up @@ -239,7 +239,7 @@ def ensure_package_configuration(opt: nil, pc: nil, lib:, func:, headers:)
end

def ensure_func(func, headers = nil)
have_func(func, headers) || abort_could_not_find_library(lib)
have_func(func, headers) || abort_could_not_find_library(func)
end

def preserving_globals
Expand Down

0 comments on commit b99ecb8

Please sign in to comment.