return result;
}
-// Helper method for copy_file_to_cache and move_file_to_cache_same_fs.
+// Helper function for copy_file_to_cache and move_file_to_cache_same_fs.
static void
do_copy_or_move_file_to_cache(const char *source, const char *dest, bool copy)
{
do_copy_or_move_file_to_cache(source, dest, false);
}
-// Helper method for get_file_from_cache and copy_file_from_cache.
+// Helper function for get_file_from_cache and copy_file_from_cache.
static void
do_copy_or_link_file_from_cache(const char *source, const char *dest, bool copy)
{
}
}
if (produce_dep_file) {
- // Make a copy rather than a link, for move
+ // Never hardlink the .d file since automake fails to move a foo.d.tmp file
+ // to foo.d if they have the same i-node.
copy_file_from_cache(cached_dep, output_dep);
}
if (generating_coverage) {