зеркало из https://github.com/github/ruby.git
Fix extconf.rb for OpenSSL 3 without $warnflags
On Windows with OpenSSL 3, the gem fails to compile with the following error message: ruby/src/ext/openssl/extconf.rb:188: undefined method \`sub!' for nil:NilClass This is because $warnflags is nil.
This commit is contained in:
Родитель
4d8f12ba38
Коммит
c8b3bd45cc
|
@ -185,7 +185,7 @@ have_func("EVP_PKEY_dup")
|
|||
Logging::message "=== Checking done. ===\n"
|
||||
|
||||
if openssl_3
|
||||
if $warnflags.sub!(/-W\K(?=deprecated-declarations)/, 'no-')
|
||||
if $warnflags&.sub!(/-W\K(?=deprecated-declarations)/, 'no-')
|
||||
$warnflags << " -Wno-incompatible-pointer-types-discards-qualifiers"
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче