Permalink
Browse files

Fix instructions.o dep, add newline

  • Loading branch information...
1 parent 5d54bad commit 933877da4c38d7e137e553bdb926f3e735b736cc Evan Phoenix committed Aug 11, 2008
Showing with 6 additions and 5 deletions.
  1. +4 −4 rakelib/vm.rake
  2. +2 −1 vm/builtin/integer.hpp
View
@@ -142,8 +142,8 @@ ensure
FileUtils.rm_rf path
end
-def rubypp_task(target, prerequisite)
- file target => [prerequisite, 'vm/rubypp.rb'] do
+def rubypp_task(target, prerequisite, *extra)
+ file target => [prerequisite, 'vm/rubypp.rb'] + extra do
path = tmpname do |path|
ruby 'vm/rubypp.rb', prerequisite, path
yield path
@@ -236,11 +236,11 @@ file 'vm/compile' => EXTERNALS + objs + %w[vm/drivers/compile.o] do |t|
link t
end
-rubypp_task 'vm/instructions.o', 'vm/llvm/instructions.cpp' do |path|
+rubypp_task 'vm/instructions.o', 'vm/llvm/instructions.cpp', *hdrs do |path|
compile 'vm/instructions.o', path
end
-rubypp_task 'vm/instructions.bc', 'vm/llvm/instructions.cpp' do |path|
+rubypp_task 'vm/instructions.bc', 'vm/llvm/instructions.cpp', *hdrs do |path|
sh "llvm-g++ -emit-llvm -Ivm -Ivm/external_libs/libffi/include -c -o vm/instructions.bc #{path}"
end
View
@@ -42,4 +42,5 @@ namespace rubinius {
};
}
-#endif
+#endif
+

0 comments on commit 933877d

Please sign in to comment.