summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2020-05-27 16:50:44 +0900
committerKOBAYASHI Shuji <[email protected]>2020-05-27 16:50:44 +0900
commitb717cc783029ba091410bc09cf0effd531e1d352 (patch)
tree4e854799cfa2caa67bc34707e1106a7feb3c1ba0
parent15c63688e3f1a3c6067e6af70e3e9bf999d91389 (diff)
downloadmruby-b717cc783029ba091410bc09cf0effd531e1d352.tar.gz
mruby-b717cc783029ba091410bc09cf0effd531e1d352.zip
Respect CFLAGS, CXXFLAGS, and LDFLAGS env vars in appveyor_config.rb
[skip travis]
-rw-r--r--appveyor_config.rb5
1 files 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|