Provide a new build target host-gprof that enables profiling.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-06-25 17:58:20 +09:00
parent 11955ca1a1
commit fb5e8ab6d5
+15
View File
@@ -0,0 +1,15 @@
MRuby::Build.new do |conf|
# load specific toolchain settings
toolchain :gcc
# include the GEM box
conf.gembox 'full-core'
conf.cc.defines = %w(MRB_METHOD_CACHE)
conf.cc.flags << '-pg'
conf.linker.flags << '-pg'
# Turn on `enable_debug` for better debugging
enable_debug
conf.enable_test
end