ruby/ext/win32/resolv/extconf.rb
Nobuyoshi Nakada af9a904f38 [ruby/resolv] Build the extension library only when CRuby (Fix
https://github.com/ruby/resolv/pull/69)

On JRuby no C compiler is available and this call results in a runtime
error.

33105bc504
2024-12-10 09:29:38 +00:00

6 lines
201 B
Ruby

require 'mkmf'
if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams')
create_makefile('win32/resolv')
else
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
end