summaryrefslogtreecommitdiffhomepage
path: root/target/bench.rb
diff options
context:
space:
mode:
Diffstat (limited to 'target/bench.rb')
-rw-r--r--target/bench.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/bench.rb b/target/bench.rb
new file mode 100644
index 000000000..30ec56ad3
--- /dev/null
+++ b/target/bench.rb
@@ -0,0 +1,11 @@
+MRuby::Build.new('bench') do |conf|
+ # Gets set by the VS command prompts.
+ if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
+ toolchain :visualcpp
+ else
+ toolchain :gcc
+ conf.cc.flags << '-O3'
+ end
+
+ conf.gembox 'default'
+end