diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-05-27 16:50:44 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-05-27 16:50:44 +0900 |
| commit | b717cc783029ba091410bc09cf0effd531e1d352 (patch) | |
| tree | 4e854799cfa2caa67bc34707e1106a7feb3c1ba0 | |
| parent | 15c63688e3f1a3c6067e6af70e3e9bf999d91389 (diff) | |
| download | mruby-b717cc783029ba091410bc09cf0effd531e1d352.tar.gz mruby-b717cc783029ba091410bc09cf0effd531e1d352.zip | |
Respect CFLAGS, CXXFLAGS, and LDFLAGS env vars in appveyor_config.rb
[skip travis]
| -rw-r--r-- | appveyor_config.rb | 5 |
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| |
