1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Do not assume all compilers accept same flags as gcc

This commit is contained in:
Nobuyoshi Nakada 2020-07-28 16:43:38 +09:00
parent 7fb12be99f
commit f44114b502
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -76,7 +76,7 @@ def compile_extension(name)
$ruby = ENV.values_at('RUBY_EXE', 'RUBY_FLAGS').join(' ')
# MRI magic to consider building non-bundled extensions
$extout = nil
$warnflags << ' -Wno-declaration-after-statement'
append_cflags '-Wno-declaration-after-statement'
create_makefile(#{ext.inspect})
RUBY
output = ruby_exe("extconf.rb")