Rejet flags properly

pull/1/head v0.0.1
Takashi Kokubun 8 years ago
parent a35f91fa27
commit 4a506529fa

@ -11,7 +11,7 @@ MRuby::Build.new do |conf|
# Never support Visual C++.
# https://github.com/mruby/mruby/blob/1.2.0/CONTRIBUTING.md#comply-with-c99-isoiec-98991999
conf.cc.flags.first.reject! do |flag|
(conf.cc.flags.first.is_a?(String) ? conf.cc.flags : conf.cc.flags.first).reject! do |flag|
flag == '-Wdeclaration-after-statement'
end

Loading…
Cancel
Save