Skip to content

Instantly share code, notes, and snippets.

@scalone
Created September 21, 2015 20:44
Show Gist options
  • Save scalone/db0877b42886565a30a5 to your computer and use it in GitHub Desktop.
Save scalone/db0877b42886565a30a5 to your computer and use it in GitHub Desktop.
diff --git a/build_config.rb b/build_config.rb
index 96b1d46..7f49744 100644
--- a/build_config.rb
+++ b/build_config.rb
@@ -2,11 +2,7 @@ MRuby::Build.new do |conf|
# load specific toolchain settings
# Gets set by the VS command prompts.
- if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
- toolchain :visualcpp
- else
- toolchain :gcc
- end
+ toolchain :visualcpp
enable_debug
@@ -83,40 +79,40 @@ MRuby::Build.new do |conf|
# conf.enable_bintest
end
-MRuby::Build.new('host-debug') do |conf|
- # load specific toolchain settings
+#MRuby::Build.new('host-debug') do |conf|
+ ## load specific toolchain settings
- # Gets set by the VS command prompts.
- if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
- toolchain :visualcpp
- else
- toolchain :gcc
- end
+ ## Gets set by the VS command prompts.
+ #if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
+ #toolchain :visualcpp
+ #else
+ #toolchain :gcc
+ #end
- enable_debug
+ #enable_debug
- # include the default GEMs
- conf.gembox 'default'
+ ## include the default GEMs
+ ##conf.gembox 'default'
- # C compiler settings
- conf.cc.defines = %w(ENABLE_DEBUG)
+ ## C compiler settings
+ #conf.cc.defines = %w(ENABLE_DEBUG)
- # Generate mruby debugger command (require mruby-eval)
- conf.gem :core => "mruby-bin-debugger"
+ ## Generate mruby debugger command (require mruby-eval)
+ #conf.gem :core => "mruby-bin-debugger"
- # bintest
- # conf.enable_bintest
-end
+ ## bintest
+ ## conf.enable_bintest
+#end
-MRuby::Build.new('test') do |conf|
- toolchain :gcc
+#MRuby::Build.new('test') do |conf|
+ #toolchain :gcc
- enable_debug
- conf.enable_bintest
- conf.enable_test
+ #enable_debug
+ #conf.enable_bintest
+ #conf.enable_test
- conf.gembox 'default'
-end
+ ##conf.gembox 'default'
+#end
# Define cross build settings
# MRuby::CrossBuild.new('32bit') do |conf|
diff --git a/mrbgems/default.gembox b/mrbgems/default.gembox
index 0960ba9..bd2d83d 100644
--- a/mrbgems/default.gembox
+++ b/mrbgems/default.gembox
@@ -9,7 +9,7 @@ MRuby::GemBox.new do |conf|
conf.gem :core => "mruby-math"
# Use standard Time class
- conf.gem :core => "mruby-time"
+# conf.gem :core => "mruby-time"
# Use standard Struct class
conf.gem :core => "mruby-struct"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment