Skip to content
This repository
Browse code

run markgc if modified dispatcher.o or vm.o.

  • Loading branch information...
commit 0051f18f129e68a9e3d1b6ad717a14abc82e6b0f 1 parent ec91b64
Kouji Takao authored April 21, 2011

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  rakelib/builder.rake
4  rakelib/builder.rake
@@ -60,8 +60,10 @@ def build_objects
60 60
   end
61 61
   dispatcher_o = File.join($builder.objsdir, 'dispatcher.o')
62 62
   t = File.exist?(dispatcher_o) ? File.mtime(dispatcher_o) : nil
  63
+  vm_o = File.join($builder.objsdir, 'vm.o')
  64
+  t_vm = File.exist?(vm_o) ? File.mtime(vm_o) : nil
63 65
   $builder.build
64  
-  if t == nil or File.mtime(dispatcher_o) > t
  66
+  if t == nil or File.mtime(dispatcher_o) > t or t_vm == nil or File.mtime(vm_o) > t_vm
65 67
     # dispatcher.o must be marked as GC compliant to avoid a linker problem.
66 68
     # We do not build it using -fobjc-gc because gcc generates unnecessary (and slow)
67 69
     # write barriers.

0 notes on commit 0051f18

Please sign in to comment.
Something went wrong with that request. Please try again.