Tiny refactoring around cflags

pull/17/head
Takashi Kokubun 8 years ago
parent 0121b84436
commit 11459966c7

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

Loading…
Cancel
Save