diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-28 16:43:38 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-28 16:43:38 +0900 |
commit | f44114b502f4ae793f95d0be14b094cfe7c4c0e7 (patch) | |
tree | 175047ad4cb9bdfd32537f68ff7e8b5f4a6fe120 /spec/ruby/optional | |
parent | 7fb12be99fecc5029d540924fc25a1457472451c (diff) | |
download | ruby-f44114b502f4ae793f95d0be14b094cfe7c4c0e7.tar.gz |
Do not assume all compilers accept same flags as gcc
Diffstat (limited to 'spec/ruby/optional')
-rw-r--r-- | spec/ruby/optional/capi/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb index 3b13e0854d..2c36ead8d0 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) $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") |