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:
parent
7fb12be99f
commit
f44114b502
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def compile_extension(name)
|
||||||
$ruby = ENV.values_at('RUBY_EXE', 'RUBY_FLAGS').join(' ')
|
$ruby = ENV.values_at('RUBY_EXE', 'RUBY_FLAGS').join(' ')
|
||||||
# MRI magic to consider building non-bundled extensions
|
# MRI magic to consider building non-bundled extensions
|
||||||
$extout = nil
|
$extout = nil
|
||||||
$warnflags << ' -Wno-declaration-after-statement'
|
append_cflags '-Wno-declaration-after-statement'
|
||||||
create_makefile(#{ext.inspect})
|
create_makefile(#{ext.inspect})
|
||||||
RUBY
|
RUBY
|
||||||
output = ruby_exe("extconf.rb")
|
output = ruby_exe("extconf.rb")
|
||||||
|
|
Loading…
Reference in a new issue