From 9f43a2560298b7f947a7a8211112e7ccfc246b04 Mon Sep 17 00:00:00 2001 From: Carson McDonald Date: Mon, 13 May 2013 10:16:52 -0400 Subject: Add example of modifying mrbc options to add debug info --- build_config.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_config.rb b/build_config.rb index a6502ac86..75c3520ea 100644 --- a/build_config.rb +++ b/build_config.rb @@ -25,6 +25,11 @@ MRuby::Build.new do |conf| # cc.compile_options = "%{flags} -MMD -o %{outfile} -c %{infile}" # end + # mrbc settings + # conf.mrbc do |mrbc| + # mrbc.compile_options = "-g -B%{funcname} -o- -" # The -g option is required for line numbers + # end + # Linker settings # conf.linker do |linker| # linker.command = ENV['LD'] || 'gcc' -- cgit v1.2.3