Commit 895ab234 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Revert part of "Refine `tasks/toolchains/(gcc|clang).rake`" (07c6b7f0)

`-Wzero-length-array` is not a mandatory option, so the original is better.
parent 1e82b195
MRuby::Toolchain.new(:clang) do |conf, _params|
toolchain :gcc, default_command: 'clang'
[conf.cc, conf.objc, conf.asm, conf.cxx].each do |compiler|
compiler.flags.unshift('-Wzero-length-array')
[conf.cc, conf.objc, conf.asm].each do |cc|
cc.flags << '-Wzero-length-array' unless ENV['CFLAGS']
end
conf.cxx.flags << '-Wzero-length-array' unless ENV['CXXFLAGS'] || ENV['CFLAGS']
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment