ruby-changes:62413
From: Nobuyoshi <ko1@a...>
Date: Tue, 28 Jul 2020 16:44:04 +0900 (JST)
Subject: [ruby-changes:62413] f44114b502 (master): Do not assume all compilers accept same flags as gcc
https://git.ruby-lang.org/ruby.git/commit/?id=f44114b502 From f44114b502f4ae793f95d0be14b094cfe7c4c0e7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 28 Jul 2020 16:43:38 +0900 Subject: Do not assume all compilers accept same flags as gcc diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb index 3b13e08..2c36ead 100644 --- a/spec/ruby/optional/capi/spec_helper.rb +++ b/spec/ruby/optional/capi/spec_helper.rb @@ -76,7 +76,7 @@ def compile_extension(name) https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/spec_helper.rb#L76 $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") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/