Skip to content

Commit

Permalink
[Truffle] Allow jt cext_extconf with other folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Nov 19, 2016
1 parent 13b7d39 commit a67130e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/jt.rb
Expand Up @@ -787,8 +787,10 @@ def cextc_extconf(cext_dir, test_gem=false, *clang_opts)
cext_dir
elsif test_gem
"#{JRUBY_DIR}/test/truffle/cexts/#{gem_name}/ext/#{gem_name}/"
else
elsif cext_dir.start_with?(JRUBY_DIR)
Dir.glob(ENV['GEM_HOME'] + "/gems/#{gem_name}*/")[0] + "ext/#{gem_name}/"
else
cext_dir + "/ext/#{gem_name}/"
end
copy_target = if is_ruby
"#{JRUBY_DIR}/lib/ruby/truffle/cext/ruby.su"
Expand Down

0 comments on commit a67130e

Please sign in to comment.