Skip to content

Commit

Permalink
[Truffle] Add RbConfig::CONFIG sitelibdir and sitearchdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Oct 21, 2016
1 parent 4ff63a4 commit 96d96a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions truffle/src/main/ruby/core/rbconfig.rb
Expand Up @@ -22,6 +22,8 @@ module RbConfig
'host_cpu' => Truffle::System.host_cpu,
'bindir' => bindir,
'libdir' => "#{jruby_home}/lib/ruby/truffle",
"sitelibdir"=>"#{jruby_home}/lib/ruby/2.3/site_ruby", # TODO BJF Oct 21, 2016 Need to review these values
"sitearchdir"=>"#{jruby_home}/lib/ruby/2.3/site_ruby",
'ruby_install_name' => 'jruby-truffle',
'RUBY_INSTALL_NAME' => 'jruby-truffle',
# 'ruby_install_name' => 'jruby',
Expand Down

2 comments on commit 96d96a0

@bjfish
Copy link
Contributor

@bjfish bjfish commented on 96d96a0 Oct 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used the jruby values for these configs for now. This allows running -S gem environment

@eregon
Copy link
Member

@eregon eregon commented on 96d96a0 Oct 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly these directories don't exist, even on jruby.

Please sign in to comment.