1 require 'compiler/compiler'
3 # When the compiler is compiled into an rba, use the modtime of
4 # compiler.rba as the version number
5 if defined? RUBY_ENGINE and RUBY_ENGINE == "rbx"
6 hints = __METHOD__.hints
7 if hints and hints[:source] == :rba
8 if path = $:.detect { |m| m.suffix? "compiler.rba" }
9 ver = File.mtime(path).to_i
14 Compiler.version_number = ver
18 Compile.register_compiler Compiler
20 # Mask that we just loaded a compiler by removing the constant
21 # and removing it's files from the feature list.
22 $".delete_if { |n| n.prefix? "compiler/" }
23 Object.const_set 'Compiler', nil