Skip to content

Commit

Permalink
Check file metadata exists when considering rebuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Aug 24, 2012
1 parent 95e788d commit 149fc83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/daedalus/daedalus.rb
Expand Up @@ -628,6 +628,7 @@ def out_of_date?(compiler)
Dir.chdir @base do Dir.chdir @base do
return true unless File.exists? name return true unless File.exists? name
@sources.each do |s| @sources.each do |s|
return true unless File.exists? s.object_path
return true if File.mtime(s.object_path) > File.mtime(name) return true if File.mtime(s.object_path) > File.mtime(name)
end end
@sources.any? { |s| s.out_of_date? compiler } @sources.any? { |s| s.out_of_date? compiler }
Expand Down

0 comments on commit 149fc83

Please sign in to comment.