Permalink
Browse files

Cleaned up compiler layout

Rather than having the compiler spread over lib and native, it all lives in compiler now.
  • Loading branch information...
1 parent 0e97434 commit fc54f03e688faa82387cdd698554072f23633d4e @evanphx evanphx committed Aug 14, 2007
View
@@ -224,30 +224,8 @@ namespace :build do
desc "Compiles the Rubinius compiler archive"
task :compiler do
- files = %w! bytecode/compiler bytecode/assembler bytecode/encoder
- sexp/simple_processor translation/normalize translation/local_scoping
- sexp/composite_processor translation/states sexp/exceptions
- bytecode/primitive_names !
-
- paths = []
-
- files.each do |name|
- file = "#{name}.rb"
- dir = File.dirname(file)
- dest_dir = File.join("native", dir)
- path = File.expand_path File.join("lib", file)
- dest = File.join("native", file)
- FileUtils.mkdir_p dest_dir
- FileUtils.symlink path, dest rescue nil
-
- paths << dest
- end
-
- paths += %w!native/bytecode/rubinius.rb
- native/bytecode/system_hints.rb
- native/bytecode/plugins.rb!
-
- update_archive paths, 'runtime/compiler.rba', "native"
+ files = Dir["compiler/**/*.rb"].sort
+ update_archive files, 'runtime/compiler.rba', "compiler"
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -104,7 +104,7 @@ instruction_names.c instruction_names.h instructions.gen: instructions.rb
system_primitives.gen: primitives.rb
$(RUBY) primitives.rb > system_primitives.gen
-auto.h auto.c: genheader.rb ../../native/bytecode/system_hints.rb
+auto.h auto.c: genheader.rb ../../compiler/bytecode/system_hints.rb
$(RUBY) genheader.rb > auto.c
node_types.c node_types.h: node_types.rb
@@ -1,4 +1,4 @@
-require '../../native/bytecode/system_hints'
+require '../../compiler/bytecode/system_hints'
klasses = []

0 comments on commit fc54f03

Please sign in to comment.