summaryrefslogtreecommitdiffhomepage
path: root/appveyor_config.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2020-05-20 13:25:28 +0900
committerKOBAYASHI Shuji <[email protected]>2020-05-20 13:32:23 +0900
commit86223b6eca954f9c189b986a24d4ba0252af7b23 (patch)
treee734c87b26cb3844a9dbd0aee3f8219a6944c4ad /appveyor_config.rb
parentd79147fe5dc4ee8b4eff6a37df229d993cf3ce58 (diff)
downloadmruby-86223b6eca954f9c189b986a24d4ba0252af7b23.tar.gz
mruby-86223b6eca954f9c189b986a24d4ba0252af7b23.zip
Retry `rake -m` on AppVeyor [skip travis]
The following error occurs when using `rake -m` on AppVeyor: ``` fatal error C1041: cannot open program database 'C:\projects\mruby\vc140.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS ``` Therefore, the issue is solved by not creating the PDB file. It is expected to be somewhat faster by not generating debugging information (I don't think debugging information is necessary for normal CI).
Diffstat (limited to 'appveyor_config.rb')
-rw-r--r--appveyor_config.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/appveyor_config.rb b/appveyor_config.rb
index fd14f4a4c..5957fda52 100644
--- a/appveyor_config.rb
+++ b/appveyor_config.rb
@@ -1,3 +1,8 @@
+def setup_option(conf)
+ conf.compilers.each{|c| c.flags[0].delete("/Zi")}
+ conf.linker.flags << "/DEBUG:NONE"
+end
+
MRuby::Build.new('full-debug') do |conf|
toolchain :visualcpp
enable_debug
@@ -5,6 +10,7 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf.gembox 'full-core'
conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
+ setup_option(conf)
conf.enable_test
end
@@ -17,6 +23,7 @@ MRuby::Build.new do |conf|
conf.compilers.each do |c|
c.defines += %w(MRB_GC_FIXED_ARENA)
end
+ setup_option(conf)
conf.enable_bintest
conf.enable_test
end
@@ -28,6 +35,7 @@ MRuby::Build.new('cxx_abi') do |conf|
conf.compilers.each do |c|
c.defines += %w(MRB_GC_FIXED_ARENA)
end
+ setup_option(conf)
conf.enable_bintest
conf.enable_test