Skip to content

Commit

Permalink
+ Add -g flag to parser compile if DEBUG
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 6599]
  • Loading branch information
zenspider committed Aug 31, 2011
1 parent 41679a4 commit 76939c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -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
Expand Down Expand Up @@ -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.