Skip to content

Commit

Permalink
run markgc if modified dispatcher.o or vm.o.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kouji Takao committed Apr 20, 2011
1 parent ec91b64 commit 0051f18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rakelib/builder.rake
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ def build_objects
end
dispatcher_o = File.join($builder.objsdir, 'dispatcher.o')
t = File.exist?(dispatcher_o) ? File.mtime(dispatcher_o) : nil
vm_o = File.join($builder.objsdir, 'vm.o')
t_vm = File.exist?(vm_o) ? File.mtime(vm_o) : nil
$builder.build
if t == nil or File.mtime(dispatcher_o) > t
if t == nil or File.mtime(dispatcher_o) > t or t_vm == nil or File.mtime(vm_o) > t_vm
# dispatcher.o must be marked as GC compliant to avoid a linker problem.
# We do not build it using -fobjc-gc because gcc generates unnecessary (and slow)
# write barriers.
Expand Down

0 comments on commit 0051f18

Please sign in to comment.