Browse files

+ Add -g flag to parser compile if DEBUG

[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 6599]
  • Loading branch information...
1 parent 41679a4 commit 76939c0c2c1b0f5b9eca49e36cff20753b5a94c8 @zenspider zenspider committed Aug 30, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
4 Rakefile
@@ -17,6 +17,8 @@ Hoe.spec 'ruby_parser' do
dependency 'sexp_processor', '~> 3.0'
self.perforce_ignore << "lib/ruby_parser.rb" if plugin? :perforce
+
+ self.racc_flags << " -g" if plugin?(:racc) && ENV["DEBUG"]
end
task :clean do
@@ -102,7 +104,7 @@ task :huh? do
end
task :irb do
- sh "GEM_HOME=#{Gem.path.first} irb -rubygems -Ilib;"
+ sh "GEM_HOME=#{Gem.path.first} irb -rubygems -Ilib -rruby_parser;"
end
# vim: syntax=Ruby

0 comments on commit 76939c0

Please sign in to comment.