diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-27 22:15:44 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-27 22:15:44 +0900 |
| commit | ebbb4fd7fb93b9279d65189b086cbc111f97a427 (patch) | |
| tree | ae1393d16e345d15155819f7002da00bfabeddd5 | |
| parent | a476c83caf1a96a1257ce1a79b1f2039408afa4d (diff) | |
| parent | b717cc783029ba091410bc09cf0effd531e1d352 (diff) | |
| download | mruby-ebbb4fd7fb93b9279d65189b086cbc111f97a427.tar.gz mruby-ebbb4fd7fb93b9279d65189b086cbc111f97a427.zip | |
Merge pull request #5011 from shuujii/respect-CFLAGS-CXXFLAGS-and-LDFLAGS-env-vars-in-appveyor_config.rb
Respect CFLAGS, CXXFLAGS, and LDFLAGS env vars in appveyor_config.rb
| -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| |
