fix all tests for previous commit

This commit is contained in:
Torsten Ruger
2019-02-08 23:03:23 +02:00
parent 74b790250a
commit 37eeb81f45
71 changed files with 117 additions and 94 deletions

View File

@ -19,8 +19,8 @@ module RubyX
attr_reader :vool
# initialize boots Parfait and Risc (ie load Builin)
def initialize
Parfait.boot!
def initialize(options)
Parfait.boot!(options)
Risc.boot!
end
@ -96,8 +96,8 @@ module RubyX
end
def self.ruby_to_binary( ruby , platform)
compiler = RubyXCompiler.new
def self.ruby_to_binary( ruby , platform , options)
compiler = RubyXCompiler.new(options)
compiler.ruby_to_vool(ruby)
# integrate other sources into vool tree

View File

@ -22,7 +22,7 @@ class RubyXC < Thor
end
puts "compiling #{file}"
linker = ::RubyX::RubyXCompiler.new.ruby_to_binary( ruby , :arm )
linker = ::RubyX::RubyXCompiler.new({}).ruby_to_binary( ruby , :arm )
writer = Elf::ObjectWriter.new(linker)
outfile = file.split("/").last.gsub(".rb" , ".o")