diff options
| -rw-r--r-- | target/host-gprof.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/host-gprof.rb b/target/host-gprof.rb new file mode 100644 index 000000000..c8a2f3b13 --- /dev/null +++ b/target/host-gprof.rb @@ -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 |
