mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Provide a new build target host-gprof that enables profiling.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user