Skip to content

Commit

Permalink
Fix a warning for frozen string literal
Browse files Browse the repository at this point in the history
Just fixing following warning:
```
❯ RUBYOPT=-w bundle exec rake test
/ydah/racc/Rakefile:80: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)
```
  • Loading branch information
ydah committed Jan 2, 2025
1 parent 5229883 commit 16791ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if jruby?
require "rake/javaextensiontask"
extask = Rake::JavaExtensionTask.new("cparse") do |ext|
jruby_home = RbConfig::CONFIG['prefix']
lib_dir = (ext.lib_dir << "/#{ext.platform}/racc")
lib_dir = ext.lib_dir += "/#{ext.platform}/racc"
ext.ext_dir = 'ext/racc'
# source/target jvm
ext.source_version = '1.8'
Expand All @@ -77,7 +77,7 @@ else
# MRI
require "rake/extensiontask"
extask = Rake::ExtensionTask.new "cparse" do |ext|
lib_dir = (ext.lib_dir << "/#{RUBY_VERSION}/#{ext.platform}/racc")
lib_dir = ext.lib_dir += "/#{RUBY_VERSION}/#{ext.platform}/racc"
ext.ext_dir = 'ext/racc/cparse'
end
end
Expand Down

0 comments on commit 16791ec

Please sign in to comment.