summaryrefslogtreecommitdiffhomepage
path: root/build_config/host-debug.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2020-12-16 19:17:44 +0900
committerKOBAYASHI Shuji <[email protected]>2020-12-16 19:17:44 +0900
commit0396f3f0fd6e574ae859d24f058abcf1ada66f6b (patch)
treeef1ada52d79a83c0463bee1c5bcc4beb9345172e /build_config/host-debug.rb
parentc1c8c25e70a54e6a82ab8cea05c115b94eb3d5ab (diff)
downloadmruby-0396f3f0fd6e574ae859d24f058abcf1ada66f6b.tar.gz
mruby-0396f3f0fd6e574ae859d24f058abcf1ada66f6b.zip
Guess toolchain when `MRuby::Build#toolchain` argument is omitted
Diffstat (limited to 'build_config/host-debug.rb')
-rw-r--r--build_config/host-debug.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/build_config/host-debug.rb b/build_config/host-debug.rb
index 9be1f6574..600a4d78f 100644
--- a/build_config/host-debug.rb
+++ b/build_config/host-debug.rb
@@ -1,12 +1,6 @@
MRuby::Build.new('host') do |conf|
# load specific toolchain settings
-
- # Gets set by the VS command prompts.
- if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
- toolchain :visualcpp
- else
- toolchain :gcc
- end
+ conf.toolchain
conf.enable_debug
@@ -20,7 +14,7 @@ MRuby::Build.new('host') do |conf|
conf.gem :core => "mruby-bin-debugger"
# test
- enable_test
+ conf.enable_test
# bintest
- enable_bintest
+ conf.enable_bintest
end