From b717cc783029ba091410bc09cf0effd531e1d352 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Wed, 27 May 2020 16:50:44 +0900 Subject: Respect CFLAGS, CXXFLAGS, and LDFLAGS env vars in appveyor_config.rb [skip travis] --- appveyor_config.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appveyor_config.rb b/appveyor_config.rb index 5957fda52..25745daa8 100644 --- a/appveyor_config.rb +++ b/appveyor_config.rb @@ -1,6 +1,7 @@ def setup_option(conf) - conf.compilers.each{|c| c.flags[0].delete("/Zi")} - conf.linker.flags << "/DEBUG:NONE" + conf.cc.flags[0].delete("/Zi") unless ENV['CFLAGS'] + conf.cxx.flags[0].delete("/Zi") unless ENV['CFLAGS'] || ENV['CXXFLAGS'] + conf.linker.flags << "/DEBUG:NONE" unless ENV['LDFLAGS'] end MRuby::Build.new('full-debug') do |conf| -- cgit v1.2.3