summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCarson McDonald <[email protected]>2013-05-13 10:16:52 -0400
committerCarson McDonald <[email protected]>2013-05-13 10:16:52 -0400
commit9f43a2560298b7f947a7a8211112e7ccfc246b04 (patch)
treefab893b4e8af0ac4f5dccd30c86f13e42d5a192e
parent7df8e6936e8a5545448cbaab3009ff574b627b36 (diff)
downloadmruby-9f43a2560298b7f947a7a8211112e7ccfc246b04.tar.gz
mruby-9f43a2560298b7f947a7a8211112e7ccfc246b04.zip
Add example of modifying mrbc options to add debug info
-rw-r--r--build_config.rb5
1 files changed, 5 insertions, 0 deletions
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'