mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Update to ruby/spec@032022ca
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d593aed7b7
commit
a5b83b03ad
47 changed files with 254 additions and 172 deletions
|
@ -6,7 +6,7 @@ require 'fileutils'
|
|||
require 'tmpdir'
|
||||
|
||||
OBJDIR ||= File.expand_path("../../../ext/#{RUBY_NAME}/#{RUBY_VERSION}", __FILE__)
|
||||
FileUtils.makedirs(OBJDIR)
|
||||
mkdir_p(OBJDIR)
|
||||
|
||||
def extension_path
|
||||
File.expand_path("../ext", __FILE__)
|
||||
|
@ -111,24 +111,6 @@ ensure
|
|||
ENV[preloadenv] = preload if preloadenv
|
||||
end
|
||||
|
||||
def compile_extension_truffleruby(name)
|
||||
sulong_config_file = File.join(extension_path, '.jruby-cext-build.yml')
|
||||
output_file = File.join(object_path, "#{name}_spec.#{RbConfig::CONFIG['DLEXT']}")
|
||||
|
||||
File.open(sulong_config_file, 'w') do |f|
|
||||
f.puts "src: #{name}_spec.c"
|
||||
f.puts "out: #{output_file}"
|
||||
end
|
||||
|
||||
command = ["#{RbConfig::CONFIG['bindir']}/../tool/jt.rb", 'cextc', extension_path]
|
||||
system(*command)
|
||||
raise "Compilation of #{extension_path} failed: #{$?}\n#{command.join(' ')}" unless $?.success?
|
||||
|
||||
output_file
|
||||
ensure
|
||||
File.delete(sulong_config_file) if File.exist?(sulong_config_file)
|
||||
end
|
||||
|
||||
def compile_truffleruby_extconf_make(name, path, objdir)
|
||||
ext = "#{name}_spec"
|
||||
file = "#{ext}.c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue